Cosmetics (typescript)

This commit is contained in:
Eric van der Vlist 2023-06-13 11:04:45 +02:00
parent 7caf088a7e
commit 1d9d38c437
1 changed files with 3 additions and 3 deletions

View File

@ -24,15 +24,15 @@ interface TagStatus {
highlighted: boolean; highlighted: boolean;
} }
export const getTagStatus = <TagStatus>( export const getTagStatus = (
tag: string, tag: string,
definitions: TagDefinitions, definitions: TagDefinitions,
selectedKey: string, selectedKey: string,
highlightedKey: string highlightedKey: string
) => { ) => {
const defaultStatus = { const defaultStatus: TagStatus = {
highlighted: false, highlighted: false,
} as TagStatus; };
const activityDefinitions = definitions[selectedKey]; const activityDefinitions = definitions[selectedKey];
if (!activityDefinitions) { if (!activityDefinitions) {
return defaultStatus; return defaultStatus;