Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions apps/web/core/components/dropdowns/cycle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ export const CycleDropdown = observer(function CycleDropdown(props: Props) {
handleClose();
};

const comboButton = (
<>
{button ? (
const comboButton = button ? (
<button
ref={setReferenceElement}
type="button"
Expand Down Expand Up @@ -130,9 +128,7 @@ export const CycleDropdown = observer(function CycleDropdown(props: Props) {
)}
</DropdownButton>
</button>
)}
</>
);
);

return (
<ComboDropDown
Expand Down
8 changes: 2 additions & 6 deletions apps/web/core/components/dropdowns/estimate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@ export const EstimateDropdown = observer(function EstimateDropdown(props: Props)
handleClose();
};

const comboButton = (
<>
{button ? (
const comboButton = button ? (
<button
ref={setReferenceElement}
type="button"
Expand Down Expand Up @@ -214,9 +212,7 @@ export const EstimateDropdown = observer(function EstimateDropdown(props: Props)
)}
</DropdownButton>
</button>
)}
</>
);
);

return (
<ComboDropDown
Expand Down
8 changes: 2 additions & 6 deletions apps/web/core/components/dropdowns/intake-state/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ export const WorkItemStateDropdownBase = observer(function WorkItemStateDropdown
handleClose();
};

const comboButton = (
<>
{button ? (
const comboButton = button ? (
<button
ref={setReferenceElement}
type="button"
Expand Down Expand Up @@ -197,9 +195,7 @@ export const WorkItemStateDropdownBase = observer(function WorkItemStateDropdown
)}
</DropdownButton>
</button>
)}
</>
);
);

return (
// oxlint-disable-next-line jsx_a11y/no-static-element-interactions
Expand Down
8 changes: 2 additions & 6 deletions apps/web/core/components/dropdowns/member/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ export const MemberDropdownBase = observer(function MemberDropdownBase(props: TM
}
};

const comboButton = (
<>
{button ? (
const comboButton = button ? (
<button
ref={setReferenceElement}
type="button"
Expand Down Expand Up @@ -159,9 +157,7 @@ export const MemberDropdownBase = observer(function MemberDropdownBase(props: TM
)}
</DropdownButton>
</button>
)}
</>
);
);

return (
<ComboDropDown
Expand Down
8 changes: 2 additions & 6 deletions apps/web/core/components/dropdowns/module/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ export const ModuleDropdownBase = observer(function ModuleDropdownBase(props: TM
}
}, [isOpen, isMobile]);

const comboButton = (
<>
{button ? (
const comboButton = button ? (
<button
ref={setReferenceElement}
type="button"
Expand Down Expand Up @@ -171,9 +169,7 @@ export const ModuleDropdownBase = observer(function ModuleDropdownBase(props: TM
/>
</DropdownButton>
</button>
)}
</>
);
);

return (
<ComboDropDown
Expand Down
8 changes: 2 additions & 6 deletions apps/web/core/components/dropdowns/priority.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,7 @@ export function PriorityDropdown(props: Props) {
? BackgroundButton
: TransparentButton;

const comboButton = (
<>
{button ? (
const comboButton = button ? (
<button
ref={setReferenceElement}
type="button"
Expand Down Expand Up @@ -440,9 +438,7 @@ export function PriorityDropdown(props: Props) {
renderToolTipByDefault={renderByDefault}
/>
</button>
)}
</>
);
);

return (
<ComboDropDown
Expand Down
8 changes: 2 additions & 6 deletions apps/web/core/components/dropdowns/project/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ export const ProjectDropdownBase = observer(function ProjectDropdownBase(props:
}
};

const comboButton = (
<>
{button ? (
const comboButton = button ? (
<button
ref={setReferenceElement}
type="button"
Expand Down Expand Up @@ -219,9 +217,7 @@ export const ProjectDropdownBase = observer(function ProjectDropdownBase(props:
)}
</DropdownButton>
</button>
)}
</>
);
);

return (
<ComboDropDown
Expand Down
8 changes: 2 additions & 6 deletions apps/web/core/components/dropdowns/state/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ export const WorkItemStateDropdownBase = observer(function WorkItemStateDropdown
handleClose();
};

const comboButton = (
<>
{button ? (
const comboButton = button ? (
<button
ref={setReferenceElement}
type="button"
Expand Down Expand Up @@ -199,9 +197,7 @@ export const WorkItemStateDropdownBase = observer(function WorkItemStateDropdown
)}
</DropdownButton>
</button>
)}
</>
);
);

return (
// oxlint-disable-next-line jsx_a11y/no-static-element-interactions
Expand Down
Loading