Skip to content

Commit

Permalink
chore: rename open to show to avoid confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Aug 12, 2024
1 parent 8eea653 commit 016166f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/components/channels/ChannelDropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export function ChannelDropdownMenu({
}: ChannelDropdownMenuProps) {
const [dialog, setDialog] = React.useState<"closeChannel" | "routingFee">();

const openChannelCloseDialog = () => setDialog("closeChannel");
const openRoutingFeeDialog = () => setDialog("routingFee");
const showCloseChannelDialog = () => setDialog("closeChannel");
const showRoutingFeeDialog = () => setDialog("routingFee");

return (
<AlertDialog
Expand Down Expand Up @@ -72,7 +72,7 @@ export function ChannelDropdownMenu({
<AlertDialogTrigger asChild>
<DropdownMenuItem
className="flex flex-row items-center gap-2 cursor-pointer"
onClick={openRoutingFeeDialog}
onClick={showRoutingFeeDialog}
>
<HandCoins className="h-4 w-4" />
Set Routing Fee
Expand All @@ -82,7 +82,7 @@ export function ChannelDropdownMenu({
<AlertDialogTrigger asChild>
<DropdownMenuItem
className="flex flex-row items-center gap-2 cursor-pointer"
onClick={openChannelCloseDialog}
onClick={showCloseChannelDialog}
>
<Trash2 className="h-4 w-4 text-destructive" />
Close Channel
Expand Down

0 comments on commit 016166f

Please sign in to comment.