Skip to content

Commit

Permalink
cleanup 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cqnykamp committed Aug 25, 2024
1 parent bac6511 commit 3c671b5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@ export function ClassificationSettings({
) : (
<Button
size="sm"
isDisabled={dropdownWaitingForAdd === classification.id}
isDisabled={
dropdownWaitingForAdd === classification.id
}
onClick={() => {
setDropdownWaitingForAdd(classification.id);
fetcher.submit(
Expand All @@ -315,7 +317,12 @@ export function ClassificationSettings({
);
}}
>
{dropdownWaitingForAdd === classification.id ? <Spinner />: "Add" }
{dropdownWaitingForAdd ===
classification.id ? (
<Spinner />
) : (
"Add"
)}
</Button>
)}
</Flex>
Expand Down
9 changes: 4 additions & 5 deletions client/src/_utils/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ export type DocRemixItem = {
owner: UserInfo;
};


export type ClassificationSystemTree = {
id: number;
name: string;
Expand All @@ -134,7 +133,7 @@ export type ClassificationSystemTree = {
id: number;
code: string;
description: string;
}[]
}[]
}[]
};
}[];
}[];
}[];
};

0 comments on commit 3c671b5

Please sign in to comment.