Cosmetics (typescript)
This commit is contained in:
parent
7caf088a7e
commit
1d9d38c437
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue