diff --git a/frontend/src/settings/Tools.tsx b/frontend/src/settings/Tools.tsx index b42195ed..3a91d30f 100644 --- a/frontend/src/settings/Tools.tsx +++ b/frontend/src/settings/Tools.tsx @@ -4,9 +4,12 @@ import { useSelector } from 'react-redux'; import userService from '../api/services/userService'; import CogwheelIcon from '../assets/cogwheel.svg'; +import NoFilesIcon from '../assets/no-files.svg'; +import NoFilesDarkIcon from '../assets/no-files-dark.svg'; import Input from '../components/Input'; import Spinner from '../components/Spinner'; import ToggleSwitch from '../components/ToggleSwitch'; +import { useDarkTheme } from '../hooks'; import AddToolModal from '../modals/AddToolModal'; import { ActiveState } from '../models/misc'; import { selectToken } from '../preferences/preferenceSlice'; @@ -16,6 +19,7 @@ import { APIToolType, UserToolType } from './types'; export default function Tools() { const { t } = useTranslation(); const token = useSelector(selectToken); + const [isDarkTheme] = useDarkTheme(); const [searchTerm, setSearchTerm] = React.useState(''); const [addToolModalState, setAddToolModalState] = @@ -132,65 +136,78 @@ export default function Tools() { ) : (