Re-add eventData

This commit is contained in:
Brian Cao 2023-01-05 15:49:17 -08:00
parent 6a694e8244
commit da3e0d26bb
8 changed files with 175 additions and 149 deletions

View file

@ -59,7 +59,6 @@ export default function WebsiteDetails({ websiteId }) {
);
const [chartLoaded, setChartLoaded] = useState(false);
const [countryData, setCountryData] = useState();
const [eventsData, setEventsData] = useState();
const {
resolve,
query: { view },
@ -182,9 +181,9 @@ export default function WebsiteDetails({ websiteId }) {
<CountriesTable {...tableProps} onDataLoad={setCountryData} />
</Column>
</GridRow>
<GridRow className={classNames({ [styles.hidden]: !eventsData?.length > 0 })}>
<GridRow>
<Column xs={12} md={12} lg={4} defaultSize={4}>
<EventsTable {...tableProps} onDataLoad={setEventsData} />
<EventsTable {...tableProps} />
</Column>
<Column xs={12} md={12} lg={8} defaultSize={8}>
<EventDataButton websiteId={websiteId} />