Skip to content

Commit

Permalink
Switch things a bit in one demo
Browse files Browse the repository at this point in the history
  • Loading branch information
apedroferreira committed Aug 1, 2024
1 parent 7f09562 commit 268f3d2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,6 @@ import CallReceivedIcon from '@mui/icons-material/CallReceived';
import { AppProvider } from '@toolpad/core/AppProvider';
import { DashboardLayout } from '@toolpad/core/DashboardLayout';

const CALLS_NAVIGATION = [
{
segment: '/made',
title: 'Made',
icon: <CallMadeIcon />,
action: <Chip label={12} color="success" size="small" />,
},
{
segment: '/received',
title: 'Received',
icon: <CallReceivedIcon />,
action: <Chip label={4} color="error" size="small" />,
},
];

const demoTheme = extendTheme({
breakpoints: {
values: {
Expand Down Expand Up @@ -62,6 +47,21 @@ DemoPageContent.propTypes = {
pathname: PropTypes.string.isRequired,
};

const CALLS_NAVIGATION = [
{
segment: '/made',
title: 'Made',
icon: <CallMadeIcon />,
action: <Chip label={12} color="success" size="small" />,
},
{
segment: '/received',
title: 'Received',
icon: <CallReceivedIcon />,
action: <Chip label={4} color="error" size="small" />,
},
];

function DashboardLayoutNavigationActions(props) {
const { window } = props;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,6 @@ import { AppProvider, Router } from '@toolpad/core/AppProvider';
import { DashboardLayout } from '@toolpad/core/DashboardLayout';
import type { Navigation } from '@toolpad/core';

const CALLS_NAVIGATION: Navigation = [
{
segment: '/made',
title: 'Made',
icon: <CallMadeIcon />,
action: <Chip label={12} color="success" size="small" />,
},
{
segment: '/received',
title: 'Received',
icon: <CallReceivedIcon />,
action: <Chip label={4} color="error" size="small" />,
},
];

const demoTheme = extendTheme({
breakpoints: {
values: {
Expand Down Expand Up @@ -58,6 +43,21 @@ function DemoPageContent({ pathname }: { pathname: string }) {
);
}

const CALLS_NAVIGATION: Navigation = [
{
segment: '/made',
title: 'Made',
icon: <CallMadeIcon />,
action: <Chip label={12} color="success" size="small" />,
},
{
segment: '/received',
title: 'Received',
icon: <CallReceivedIcon />,
action: <Chip label={4} color="error" size="small" />,
},
];

interface DemoProps {
/**
* Injected by the documentation to work in an iframe.
Expand Down

0 comments on commit 268f3d2

Please sign in to comment.