Cast unactive actions to correct type now that its an empty list

This commit is contained in:
Jackson Harper 2022-07-11 14:09:24 -07:00
parent 4e27ec97f9
commit bde765c524

View file

@ -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',