From ec69fba987da6166039f2df4a8f497f0e6788d1d Mon Sep 17 00:00:00 2001 From: Domenic Horner Date: Wed, 1 Nov 2023 18:32:05 +0800 Subject: [PATCH] masonry layout --- src/pages/Dashboard.jsx | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/src/pages/Dashboard.jsx b/src/pages/Dashboard.jsx index 1ea08a8..1d64a53 100644 --- a/src/pages/Dashboard.jsx +++ b/src/pages/Dashboard.jsx @@ -1,25 +1,13 @@ import React from "react"; -import { useSelector } from "react-redux"; -import { useInView } from "react-intersection-observer"; - import Box from "@mui/joy/Box"; import Grid from "@mui/joy/Grid"; import Sheet from "@mui/joy/Sheet"; -import CircularProgress from "@mui/joy/CircularProgress"; -import AccordionGroup from "@mui/joy/AccordionGroup"; -import { accordionSummaryClasses } from "@mui/joy/AccordionSummary"; -import Checkbox from "@mui/joy/Checkbox"; -import { FilterModLogType } from "../components/Filters"; +import Masonry from "@mui/lab/Masonry"; -import useLVQueryCache from "../hooks/useLVQueryCache"; import { getSiteData } from "../hooks/getSiteData"; -import { parseActorId } from "../utils"; - -import ModLogAccordians from "../components/Activity/ModLogAccordians"; - import { ReportsStat, ApprovalStat, @@ -29,7 +17,6 @@ import { GrowthCard, } from "../components/Dashboard/StatCards"; -import { useLemmyHttp } from "../hooks/useLemmyHttp"; export default function Dashboard() { const { baseUrl, siteResponse, siteData, localPerson, userRole } = getSiteData(); @@ -38,21 +25,16 @@ export default function Dashboard() { sx={{ display: "flex", flexDirection: "column", - gap: 2, + gap: 0, }} > - + {userRole != "user" && ( @@ -75,7 +57,7 @@ export default function Dashboard() { - + {/* code display json raw */} {/*