-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use small buttons for transaction controls
- Loading branch information
1 parent
b3dcfc0
commit d1a7381
Showing
6 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
import { ChevronDown, ChevronRight } from 'lucide-react' | ||
import { GhostButton } from './GhostButton' | ||
|
||
interface Props { | ||
expanded: boolean | ||
onToggle(): void | ||
} | ||
|
||
export const ToggleButton = ({ expanded, onToggle }: Props) => ( | ||
<button | ||
className="rounded p-1 hover:bg-zinc-200 dark:hover:bg-zinc-700" | ||
<GhostButton | ||
iconOnly | ||
icon={expanded ? ChevronDown : ChevronRight} | ||
size="small" | ||
onClick={(event) => { | ||
event.stopPropagation() | ||
event.preventDefault() | ||
|
||
onToggle() | ||
}} | ||
title={expanded ? 'collapse' : 'expand'} | ||
> | ||
{expanded ? <ChevronDown size={16} /> : <ChevronRight size={16} />} | ||
</button> | ||
{expanded ? 'collapse' : 'expand'} | ||
</GhostButton> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
export const RecordingIcon = () => ( | ||
<div className="flex size-9 items-center justify-center"> | ||
<div className="relative flex size-4 items-center justify-center"> | ||
<div className="absolute size-4 animate-ping rounded-full bg-red-400 bg-opacity-50 motion-reduce:hidden" /> | ||
<div className="size-3 rounded-full bg-red-500" /> | ||
</div> | ||
<div className="relative flex size-4 items-center justify-center"> | ||
<div className="absolute size-4 animate-ping rounded-full bg-red-400 bg-opacity-50 motion-reduce:hidden" /> | ||
<div className="size-3 rounded-full bg-red-500" /> | ||
</div> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters