diff --git a/src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx b/src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx index 9ffcbe8c..dd05495f 100644 --- a/src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx +++ b/src/custom/CustomColumnVisibilityControl/CustomColumnVisibilityControl.tsx @@ -1,3 +1,4 @@ +import { useTheme } from '@mui/material'; import React from 'react'; import { Box } from '../../base/Box'; import { Card } from '../../base/Card'; @@ -30,6 +31,7 @@ export function CustomColumnVisibilityControl({ }: CustomColumnVisibilityControlProps): JSX.Element { const [open, setOpen] = React.useState(false); const [anchorEl, setAnchorEl] = React.useState(null); + const theme = useTheme(); const handleOpen = (event: React.MouseEvent) => { setAnchorEl(event.currentTarget); @@ -54,7 +56,7 @@ export function CustomColumnVisibilityControl({ } + icon={} arrow /> {columns.map((col) => ( diff --git a/src/custom/SearchBar.tsx b/src/custom/SearchBar.tsx index b77b317d..9da4e95f 100644 --- a/src/custom/SearchBar.tsx +++ b/src/custom/SearchBar.tsx @@ -61,7 +61,6 @@ export interface SearchBarProps { onClear?: () => void; expanded: boolean; setExpanded: (expanded: boolean) => void; - iconFill?: string; } function SearchBar({ @@ -69,13 +68,11 @@ function SearchBar({ placeholder, onClear, expanded, - setExpanded, - iconFill + setExpanded }: SearchBarProps): JSX.Element { const [searchText, setSearchText] = React.useState(''); const searchRef = React.useRef(null); - - const outerTheme = useTheme(); + const theme = useTheme(); const handleSearchChange = (event: React.ChangeEvent): void => { setSearchText(event.target.value); @@ -123,7 +120,7 @@ function SearchBar({ }} >
- + } + icon={} arrow /> ) : ( } + icon={} arrow /> )} diff --git a/src/custom/UniversalFilter.tsx b/src/custom/UniversalFilter.tsx index dd4fe57e..8f878703 100644 --- a/src/custom/UniversalFilter.tsx +++ b/src/custom/UniversalFilter.tsx @@ -1,3 +1,4 @@ +import { useTheme } from '@mui/material'; import { SelectChangeEvent } from '@mui/material/Select'; import React from 'react'; import { Button } from '../base/Button'; @@ -36,6 +37,7 @@ function UniversalFilter({ }: UniversalFilterProps): JSX.Element { const [anchorEl, setAnchorEl] = React.useState(null); const [open, setOpen] = React.useState(false); + const theme = useTheme(); const handleFilterChange = (event: React.ChangeEvent<{ value: string }>, columnName: string) => { const value = event.target.value; @@ -70,7 +72,7 @@ function UniversalFilter({ } + icon={} arrow /> {Object.keys(filters).map((filterColumn) => {