diff --git a/client/src/components/Apps/Apps.tsx b/client/src/components/Apps/Apps.tsx index e5767fa..c7718da 100644 --- a/client/src/components/Apps/Apps.tsx +++ b/client/src/components/Apps/Apps.tsx @@ -25,7 +25,7 @@ interface ComponentProps { export enum ContentType { category, - app + app, } const Apps = (props: ComponentProps): JSX.Element => { diff --git a/client/src/components/Bookmarks/Bookmarks.tsx b/client/src/components/Bookmarks/Bookmarks.tsx index e8c23d0..cd1b181 100644 --- a/client/src/components/Bookmarks/Bookmarks.tsx +++ b/client/src/components/Bookmarks/Bookmarks.tsx @@ -50,10 +50,10 @@ const Bookmarks = (props: ComponentProps): JSX.Element => { updatedAt: new Date(), }); const [bookmarkInUpdate, setBookmarkInUpdate] = useState({ - name: "string", - url: "string", + name: "", + url: "", categoryId: -1, - icon: "string", + icon: "", isPinned: false, orderId: 0, id: 0, diff --git a/client/src/components/Home/Home.tsx b/client/src/components/Home/Home.tsx index f1074da..5f5033a 100644 --- a/client/src/components/Home/Home.tsx +++ b/client/src/components/Home/Home.tsx @@ -59,13 +59,6 @@ const Home = (props: ComponentProps): JSX.Element => { } }, [getAppCategories]); - // Load app categories - useEffect(() => { - if (appCategories.length === 0) { - getAppCategories(); - } - }, [getAppCategories]); - // Load apps useEffect(() => { if (apps.length === 0) { diff --git a/client/src/store/reducers/app.ts b/client/src/store/reducers/app.ts index 9d28cd2..37eb1c3 100644 --- a/client/src/store/reducers/app.ts +++ b/client/src/store/reducers/app.ts @@ -245,16 +245,6 @@ const reorderApps = (state: State, action: Action): State => { }; const sortApps = (state: State, action: Action): State => { - // const tmpCategories = [...state.categories]; - - // tmpCategories.forEach((category: Category) => { - // category.apps = sortData(category.apps, action.payload); - // }); - - // return { - // ...state, - // categories: tmpCategories, - // }; const sortedApps = sortData(state.apps, action.payload); return {