feat: randomize color on label create (#1839)

fix: create label state being persisted after edit label
This commit is contained in:
Dakshesh Jain 2023-08-11 17:42:47 +05:30 committed by GitHub
parent cd5e5b96da
commit 7becec4ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 199 additions and 155 deletions

View file

@ -133,6 +133,11 @@ const LabelsSettings: NextPage = () => {
setLabelForm={setLabelForm}
isUpdating={isUpdating}
labelToUpdate={labelToUpdate}
onClose={() => {
setLabelForm(false);
setIsUpdating(false);
setLabelToUpdate(null);
}}
ref={scrollToRef}
/>
)}