Skip to content

Commit 4bc1b00

Browse files
committed
chore: fix the useTheme name import from mui to sistent path
Signed-off-by: Amit Amrutiya <amitamrutiya2210@gmail.com>
1 parent f5be8f8 commit 4bc1b00

7 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/custom/CustomCatalog/EmptyStateCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { useTheme } from '@mui/material';
21
import { FC } from 'react';
32
import { EmptyStyleIcon } from '../../icons/EmptyStyle';
3+
import { useTheme } from '../../theme';
44
import { CatalogEmptyStateDiv } from './style';
55

66
const EmptyStateCard: FC = () => {

src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { useTheme } from '@mui/material';
21
import React from 'react';
32
import { Box } from '../../base/Box';
43
import { Card } from '../../base/Card';
54
import { Checkbox } from '../../base/Checkbox';
65
import { ClickAwayListener } from '../../base/ClickAwayListener';
76
import { FormControlLabel } from '../../base/FormControlLabel';
87
import { ColumnIcon } from '../../icons';
8+
import { useTheme } from '../../theme';
99
import PopperListener from '../PopperListener';
1010
import TooltipIcon from '../TooltipIcon';
1111

src/custom/Prompt/promt-component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { useTheme } from '@mui/material';
21
import { forwardRef, useImperativeHandle, useRef, useState } from 'react';
32
import { Typography } from '../../base';
3+
import { useTheme } from '../../theme';
44
import { Modal, ModalBody, ModalButtonPrimary, ModalButtonSecondary, ModalFooter } from '../Modal';
55
import { ActionComponent, Subtitle } from './style';
66

src/custom/SearchBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/* eslint-disable react-hooks/exhaustive-deps */
22
import { outlinedInputClasses } from '@mui/material/OutlinedInput';
3-
import { Theme, ThemeProvider, createTheme, useTheme } from '@mui/material/styles';
3+
import { Theme, ThemeProvider, createTheme } from '@mui/material/styles';
44
import debounce from 'lodash/debounce';
55
import React, { useCallback } from 'react';
66
import { ClickAwayListener } from '../base/ClickAwayListener';
77
import { TextField } from '../base/TextField';
88
import { CloseIcon, SearchIcon } from '../icons';
9+
import { useTheme } from '../theme';
910
import TooltipIcon from './TooltipIcon';
1011

1112
const customTheme = (theme: Theme) =>

src/custom/Stepper/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
import { Box, Stack, Step, StepConnector, StepLabel, Stepper, useTheme } from '@mui/material';
1+
import { Box, Stack, Step, StepConnector, StepLabel, Stepper } from '@mui/material';
22
import { stepConnectorClasses } from '@mui/material/StepConnector';
33
import { StepIconProps } from '@mui/material/StepIcon';
44
import { styled } from '@mui/system';
55
import React, { useMemo, useState } from 'react';
66
import { IconProps } from '../../icons/types';
7+
import { useTheme } from '../../theme';
78

89
interface ColorlibStepIconPropsI extends StepIconProps {
910
icons: React.ComponentType<IconProps>[];

src/custom/StyledSearchBar/StyledSearchBar.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import { SxProps, Theme, useTheme } from '@mui/material';
1+
import { SxProps, Theme } from '@mui/material';
22
import { debounce } from 'lodash';
33
import React, { useCallback, useState } from 'react';
44
import { InputAdornment } from '../../base';
55
import { SearchIcon } from '../../icons';
6+
import { useTheme } from '../../theme';
67
import { InputAdornmentEnd, StyledSearchInput } from './style';
78

89
interface SearchBarProps {

src/custom/UniversalFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { useTheme } from '@mui/material';
21
import { SelectChangeEvent } from '@mui/material/Select';
32
import React from 'react';
43
import { Button } from '../base/Button';
@@ -8,6 +7,7 @@ import { MenuItem } from '../base/MenuItem';
87
import { Paper } from '../base/Paper';
98
import { Select } from '../base/Select';
109
import { FilterIcon } from '../icons';
10+
import { useTheme } from '../theme';
1111
import PopperListener from './PopperListener';
1212
import TooltipIcon from './TooltipIcon';
1313

0 commit comments

Comments
 (0)