Skip to content

Commit 62f98b7

Browse files
authored
Use named imports for MUI components (#40)
1 parent b61d940 commit 62f98b7

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/components/Footer.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
import { Link, LinkProps, Typography, useTheme } from "@mui/material";
2-
import Grid from "@mui/material/Grid2";
1+
import {
2+
Link,
3+
LinkProps,
4+
Typography,
5+
Grid2 as Grid,
6+
useTheme,
7+
} from "@mui/material";
38

49
import React from "react";
510
import {

src/components/User.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import {
44
Button,
55
Box,
66
Link,
7+
Menu,
8+
MenuItem,
79
Stack,
810
Typography,
911
useTheme,
1012
} from "@mui/material";
1113

12-
import Menu from "@mui/material/Menu";
13-
import MenuItem from "@mui/material/MenuItem";
1414
import { ReactNode, useState } from "react";
1515

1616
import { MdLogin } from "react-icons/md";

0 commit comments

Comments
 (0)