mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): clean up unused files/packages
This commit is contained in:
@ -90,12 +90,6 @@ type SettingsModalProps = {
|
||||
children: ReactElement;
|
||||
};
|
||||
|
||||
/**
|
||||
* Modal for app settings. Also provides Reset functionality in which the
|
||||
* app's localstorage is wiped via redux-persist.
|
||||
*
|
||||
* Secondary post-reset modal is included here.
|
||||
*/
|
||||
const SettingsModal = ({ children }: SettingsModalProps) => {
|
||||
const dispatch = useAppDispatch();
|
||||
const { t } = useTranslation();
|
||||
|
@ -1,17 +0,0 @@
|
||||
import { RootState } from 'app/store/store';
|
||||
import { useAppSelector } from 'app/store/storeHooks';
|
||||
import { InvokeTabName } from 'features/ui/store/tabMap';
|
||||
import { useCallback } from 'react';
|
||||
|
||||
export const useIsTabDisabled = () => {
|
||||
const disabledTabs = useAppSelector(
|
||||
(state: RootState) => state.config.disabledTabs
|
||||
);
|
||||
|
||||
const isTabDisabled = useCallback(
|
||||
(tab: InvokeTabName) => disabledTabs.includes(tab),
|
||||
[disabledTabs]
|
||||
);
|
||||
|
||||
return isTabDisabled;
|
||||
};
|
Reference in New Issue
Block a user