Skip to content

Commit

Permalink
convert checkboxes to button
Browse files Browse the repository at this point in the history
Signed-off-by: Sauradip Ghosh <[email protected]>
  • Loading branch information
Sauradip07 committed Aug 29, 2024
1 parent b1a160c commit 65637a0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
23 changes: 18 additions & 5 deletions src/frontend/components/sidebar-history.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, {
useEffect,
useState
} from 'react';
import { DropdownMenuCheckboxItemProps } from '@radix-ui/react-dropdown-menu';
import { DropdownMenuCheckboxItemProps, DropdownMenuItem } from '@radix-ui/react-dropdown-menu';
import { Button } from '@/components/ui/button';
import {
DropdownMenu,
Expand Down Expand Up @@ -83,14 +83,27 @@ const SidebarHistory = (props: Props) => {
>
<Pin className="mr-2" /> Pin
</DropdownMenuCheckboxItem>
<DropdownMenuCheckboxItem>
{/* <DropdownMenuCheckboxItem>
<Pencil className="mr-2" />{' '}
Rename
</DropdownMenuCheckboxItem>
<DropdownMenuCheckboxItem>
</DropdownMenuCheckboxItem> */}
<button className='p-[7px] flex flex-rowtext-left w-full hover:bg-hover-blue border-none hover:border-none '>
<Pencil className="ml-6" />
<span className='ml-3'>
Rename
</span>
</button>

<button className='p-[7px] flex flex-rowtext-left w-full hover:bg-hover-blue border-none hover:border-none '>
<Trash2 className="ml-6" />
<span className='ml-3'>
Delete
</span>
</button>
{/* <DropdownMenuCheckboxItem>
<Trash2 className="mr-2" />{' '}
Delete
</DropdownMenuCheckboxItem>
</DropdownMenuCheckboxItem> */}
</DropdownMenuContent>
</DropdownMenu>
</button>
Expand Down
1 change: 1 addition & 0 deletions src/frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const config = {
extend: {
colors: {
border: 'hsl(var(--border))',
'hover-blue': '#f1f5f9',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
background: 'hsl(var(--background))',
Expand Down

0 comments on commit 65637a0

Please sign in to comment.