Skip to content

Commit

Permalink
Refactor imports from '@mui/joy' for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Sep 16, 2024
1 parent db71d75 commit 3c9bef6
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion new-log-viewer/src/components/Layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CssVarsProvider} from "@mui/joy/styles";
import {CssVarsProvider} from "@mui/joy";

import {CONFIG_KEY} from "../typings/config";
import {CONFIG_DEFAULT} from "../utils/config";
Expand Down
6 changes: 4 additions & 2 deletions new-log-viewer/src/components/MenuBar/PageNumInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import React, {
useState,
} from "react";

import {Typography} from "@mui/joy";
import Input from "@mui/joy/Input";
import {
Input,
Typography,
} from "@mui/joy";

import {StateContext} from "../../contexts/StateContextProvider";

Expand Down
8 changes: 5 additions & 3 deletions new-log-viewer/src/components/StatusBar/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import {useContext} from "react";

import Button from "@mui/joy/Button";
import Sheet from "@mui/joy/Sheet";
import Typography from "@mui/joy/Typography";
import {
Button,
Sheet,
Typography,
} from "@mui/joy";

import {StateContext} from "../../contexts/StateContextProvider";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import {
DialogActions,
DialogContent,
DialogTitle,
FormControl,
FormHelperText,
FormLabel,
Input,
ModalDialog,
ToggleButtonGroup,
useColorScheme,
} from "@mui/joy";
import FormControl from "@mui/joy/FormControl/FormControl";
import FormHelperText from "@mui/joy/FormHelperText";
import FormLabel from "@mui/joy/FormLabel/FormLabel";
import Input from "@mui/joy/Input";
import type {Mode} from "@mui/system/cssVars/useCurrentColorScheme";

import DarkModeIcon from "@mui/icons-material/DarkMode";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Modal from "@mui/joy/Modal";
import {Modal} from "@mui/joy";

import SettingsDialog from "./SettingsDialog";

Expand Down
2 changes: 1 addition & 1 deletion new-log-viewer/src/components/theme.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extendTheme} from "@mui/joy/styles";
import {extendTheme} from "@mui/joy";

import KeyboardArrowDown from "@mui/icons-material/KeyboardArrowDown";

Expand Down

0 comments on commit 3c9bef6

Please sign in to comment.