refactor: simple website detail grid

This commit is contained in:
moonrailgun 2023-10-09 00:08:28 +08:00
parent cb8b14b910
commit 5a7c437c70

View File

@ -85,10 +85,7 @@ export const WebsiteDetail: React.FC = React.memo(() => {
endAt={endAt} endAt={endAt}
/> />
</Card.Grid> </Card.Grid>
<Card.Grid hoverable={false} className="!w-2/3 min-h-[470px]"> <Card.Grid hoverable={false} className="!w-1/2 min-h-[470px]">
{/* Map */}
</Card.Grid>
<Card.Grid hoverable={false} className="!w-1/3 min-h-[470px]">
<MetricsTable <MetricsTable
websiteId={websiteId} websiteId={websiteId}
type="country" type="country"
@ -97,7 +94,7 @@ export const WebsiteDetail: React.FC = React.memo(() => {
endAt={endAt} endAt={endAt}
/> />
</Card.Grid> </Card.Grid>
<Card.Grid hoverable={false} className="!w-1/3 min-h-[470px]"> <Card.Grid hoverable={false} className="!w-1/2 min-h-[470px]">
<MetricsTable <MetricsTable
websiteId={websiteId} websiteId={websiteId}
type="event" type="event"
@ -106,9 +103,6 @@ export const WebsiteDetail: React.FC = React.memo(() => {
endAt={endAt} endAt={endAt}
/> />
</Card.Grid> </Card.Grid>
<Card.Grid hoverable={false} className="!w-2/3 min-h-[470px]">
{/* Events */}
</Card.Grid>
</Card> </Card>
</div> </div>
); );