refactor, further cleaning up sidebar, home, mydashboard, alertlevelwidget, widget, and more misc.

This commit is contained in:
2026-06-05 11:27:43 -07:00
parent 0715fa61ab
commit a0708fa8ea
12 changed files with 214 additions and 224 deletions
+4 -13
View File
@@ -10,20 +10,13 @@ import { SocialMedia } from './VolcanoTabs/SocialMedia';
import { SearchBar } from "../CanvasComponents/SearchBar";
import { SettingsButton } from "../CanvasComponents/SettingsButton";
export default function Volcano({ view, onChangeView }) {
export default function Volcano() {
return (
<Tabs.Root
key={view}
value={view}
variant="line"
width="100%"
height="100%"
lazyMount
// Prevent navigation away from 'My Dashboard' while in Edit mode
onValueChange={(e) => {
const nextView = e.value;
onChangeView(nextView);
}}
>
<Flex
as="header"
@@ -31,14 +24,12 @@ export default function Volcano({ view, onChangeView }) {
top="0"
zIndex="dropdown" // zIndex: 1100
bg="base200"
pl={5}
pr={2}
pt={3}
p={5}
align="center"
justify="space-between"
width="100%"
>
{/* HEADER */}
{/* SUB HEADER */}
<CanvasHeaderTabs tabs={VOLCANO_TABS} />
<HStack width="258px" justifyContent="flex-end">
<SearchBar />
@@ -46,7 +37,7 @@ export default function Volcano({ view, onChangeView }) {
</HStack>
</Flex>
{/* CANVAS */}
{/* SUB CONTENT */}
<Tabs.Content value="volcanohome">
<VolcanoHome />
</Tabs.Content>