From bde765c5241a857b63c3406b8b2c88e6d0d152f6 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 11 Jul 2022 14:09:24 -0700 Subject: [PATCH] Cast unactive actions to correct type now that its an empty list --- .../web/components/templates/homeFeed/HomeFeedContainer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx b/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx index 15f98e5c4..92d5ad30c 100644 --- a/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx +++ b/packages/web/components/templates/homeFeed/HomeFeedContainer.tsx @@ -42,7 +42,7 @@ import { State, PageType, } from '../../../lib/networking/fragments/articleFragment' -import { useRegisterActions, createAction, useKBar } from 'kbar' +import { useRegisterActions, createAction, useKBar, Action } from 'kbar' import { EditTitleModal } from './EditTitleModal' import { useGetUserPreferences } from '../../../lib/networking/queries/useGetUserPreferences' import { searchQuery } from '../../../lib/networking/queries/search' @@ -490,7 +490,7 @@ export function HomeFeedContainer(): JSX.Element { }), ] - const UNACTIVE_ACTIONS = [ + const UNACTIVE_ACTIONS: Action[] = [ // createAction({ // section: 'Library', // name: 'Sort in ascending order',