Skip to content

Commit 4b2924b

Browse files
committed
fix: default export in DashboardNavbarLinks
1 parent d9c3b1e commit 4b2924b

File tree

3 files changed

+56
-11
lines changed

3 files changed

+56
-11
lines changed

package-lock.json

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import { Theme } from '@material-ui/core/styles/createTheme';
2+
import { drawerWidth, transition, container } from '../../material-dashboard-react';
3+
4+
interface AppStyleProps {
5+
wrapper: React.CSSProperties;
6+
mainPanel: React.CSSProperties & {
7+
[key: string]: any;
8+
};
9+
content: React.CSSProperties;
10+
container: typeof container;
11+
map: React.CSSProperties;
12+
}
13+
14+
const appStyle = (theme: Theme): AppStyleProps => ({
15+
wrapper: {
16+
position: 'relative',
17+
top: '0',
18+
height: '100vh',
19+
},
20+
mainPanel: {
21+
[theme.breakpoints.up('md')]: {
22+
width: `calc(100% - ${drawerWidth}px)`,
23+
},
24+
overflow: 'auto',
25+
position: 'relative',
26+
float: 'right',
27+
...transition,
28+
maxHeight: '100%',
29+
width: '100%',
30+
WebkitOverflowScrolling: 'touch' as any,
31+
},
32+
content: {
33+
marginTop: '70px',
34+
padding: '30px 15px',
35+
minHeight: 'calc(100vh - 123px)',
36+
},
37+
container: { ...container },
38+
map: {
39+
marginTop: '70px',
40+
},
41+
});
42+
43+
export default appStyle;

src/ui/components/Navbars/DashboardNavbarLinks.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { UserData } from '../../../types/models';
2020

2121
const useStyles = makeStyles(styles);
2222

23-
export const DashboardNavbarLinks: React.FC = () => {
23+
const DashboardNavbarLinks: React.FC = () => {
2424
const classes = useStyles();
2525
const navigate = useNavigate();
2626
const [openProfile, setOpenProfile] = useState<HTMLElement | null>(null);
@@ -124,3 +124,5 @@ export const DashboardNavbarLinks: React.FC = () => {
124124
</div>
125125
);
126126
};
127+
128+
export default DashboardNavbarLinks;

0 commit comments

Comments
 (0)