refactor, further cleaning up sidebar, home, mydashboard, alertlevelwidget, widget, and more misc.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user