Cosmetics (typescript)
This commit is contained in:
parent
7caf088a7e
commit
1d9d38c437
|
@ -24,15 +24,15 @@ interface TagStatus {
|
|||
highlighted: boolean;
|
||||
}
|
||||
|
||||
export const getTagStatus = <TagStatus>(
|
||||
export const getTagStatus = (
|
||||
tag: string,
|
||||
definitions: TagDefinitions,
|
||||
selectedKey: string,
|
||||
highlightedKey: string
|
||||
) => {
|
||||
const defaultStatus = {
|
||||
const defaultStatus: TagStatus = {
|
||||
highlighted: false,
|
||||
} as TagStatus;
|
||||
};
|
||||
const activityDefinitions = definitions[selectedKey];
|
||||
if (!activityDefinitions) {
|
||||
return defaultStatus;
|
||||
|
|
Loading…
Reference in New Issue