Do not inject appupdated state or actions

This commit is contained in:
Alejandro Celaya
2025-11-15 10:28:33 +01:00
parent f301513f5b
commit 373f0dbbbb
7 changed files with 20 additions and 42 deletions

View File

@@ -14,11 +14,7 @@ import { useLoadRemoteServers } from '../servers/reducers/remoteServers';
import { useSettings } from '../settings/reducers/settings';
import { Settings } from '../settings/Settings';
import { forceUpdate } from '../utils/helpers/sw';
export type AppProps = {
resetAppUpdate: () => void;
appUpdated: boolean;
};
import { useAppUpdated } from './reducers/appUpdates';
type AppDeps = {
Home: FC;
@@ -27,7 +23,8 @@ type AppDeps = {
ManageServers: FC;
};
const App: FCWithDeps<AppProps, AppDeps> = ({ appUpdated, resetAppUpdate }) => {
const App: FCWithDeps<any, AppDeps> = () => {
const { appUpdated, resetAppUpdate } = useAppUpdated();
const {
Home,
ShlinkWebComponentContainer,