Fixed select all classes
This commit is contained in:
parent
9c91f4056a
commit
fe9dcdf424
1 changed files with 12 additions and 18 deletions
|
|
@ -31,25 +31,19 @@ const HeaderComponent = ({
|
||||||
<>
|
<>
|
||||||
<div className="grid grid-cols-3 pb-5">
|
<div className="grid grid-cols-3 pb-5">
|
||||||
<div className="col-auto grid-cols-1 self-center justify-self-start">
|
<div className="col-auto grid-cols-1 self-center justify-self-start">
|
||||||
<a onClick={handleClick} className="text-sm">
|
<Button
|
||||||
<div className="header-menu-bar-display ">
|
variant="none"
|
||||||
<div
|
size="none"
|
||||||
className="header-menu-flow-name"
|
onClick={handleClick}
|
||||||
data-testid="select_all_collection"
|
className="text-sm"
|
||||||
>
|
>
|
||||||
<div className="flex items-center space-x-2">
|
<div className="flex items-center space-x-2">
|
||||||
<Checkbox checked={!shouldSelectAll} id="terms" />
|
<Checkbox checked={!shouldSelectAll} id="terms" />
|
||||||
<label
|
<span className="label text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70">
|
||||||
onClick={handleClick}
|
{shouldSelectAll ? "Select All" : "Unselect All"}
|
||||||
htmlFor="terms"
|
</span>
|
||||||
className="label cursor-pointer text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
||||||
>
|
|
||||||
{shouldSelectAll ? "Select All" : "Unselect All"}
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-span-2 flex grid-cols-1 gap-2 justify-self-end">
|
<div className="col-span-2 flex grid-cols-1 gap-2 justify-self-end">
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue