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
pull/707/head
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
1 changed files with 1 additions and 1 deletions

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}