fix: hydration error and draft issue workflow (#2199)
* fix: hydration error and draft issue workflow * fix: build error
This commit is contained in:
parent
5d331477ef
commit
79bf7d4c0c
11 changed files with 240 additions and 47 deletions
|
|
@ -17,7 +17,10 @@ export const WorkspaceSidebarQuickAction = () => {
|
|||
|
||||
const [isDraftIssueModalOpen, setIsDraftIssueModalOpen] = useState(false);
|
||||
|
||||
const { storedValue, clearValue } = useLocalStorage<any>("draftedIssue", null);
|
||||
const { storedValue, clearValue } = useLocalStorage<any>(
|
||||
"draftedIssue",
|
||||
JSON.stringify(undefined)
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
@ -30,18 +33,7 @@ export const WorkspaceSidebarQuickAction = () => {
|
|||
clearValue();
|
||||
setIsDraftIssueModalOpen(false);
|
||||
}}
|
||||
fieldsToShow={[
|
||||
"name",
|
||||
"description",
|
||||
"label",
|
||||
"assignee",
|
||||
"priority",
|
||||
"dueDate",
|
||||
"priority",
|
||||
"state",
|
||||
"startDate",
|
||||
"project",
|
||||
]}
|
||||
fieldsToShow={["all"]}
|
||||
/>
|
||||
|
||||
<div
|
||||
|
|
@ -50,7 +42,7 @@ export const WorkspaceSidebarQuickAction = () => {
|
|||
}`}
|
||||
>
|
||||
<div
|
||||
className={`flex items-center justify-between w-full rounded cursor-pointer px-2 gap-1 ${
|
||||
className={`flex items-center justify-between w-full rounded cursor-pointer px-2 gap-1 group ${
|
||||
store?.theme?.sidebarCollapsed
|
||||
? "px-2 hover:bg-custom-sidebar-background-80"
|
||||
: "px-3 shadow border-[0.5px] border-custom-border-300"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue