hide the chart when view other tab

At the website details page, when click the "Pages", "Referrers" etc. button, will go to the view page, but after click the another button, page scroll to top, the default show is the main chart, not the details I want, so by default hide the chart when I click the buttons "Pages"", "Referrers" etc
This commit is contained in:
bulog 2021-06-20 13:33:28 +08:00 committed by GitHub
parent 06535704ae
commit b99847a5b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ export default function WebsiteDetails({ websiteId }) {
return (
<Page>
<div className="row">
<div className={classNames('row', {[styles.hidden]: !!view })}>
<div className={classNames(styles.chart, 'col')}>
<WebsiteChart
websiteId={websiteId}