Skip to content

Commit

Permalink
chore: dialog state naming
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Aug 12, 2024
1 parent d6bd20a commit 8eea653
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/channels/ChannelDropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export function ChannelDropdownMenu({
alias,
channel,
}: ChannelDropdownMenuProps) {
const [dialog, setDialog] = React.useState<"close" | "routingFee">();
const [dialog, setDialog] = React.useState<"closeChannel" | "routingFee">();

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

return (
Expand Down Expand Up @@ -90,7 +90,7 @@ export function ChannelDropdownMenu({
</AlertDialogTrigger>
</DropdownMenuContent>
</DropdownMenu>
{dialog === "close" && (
{dialog === "closeChannel" && (
<CloseChannelDialogContent alias={alias} channel={channel} />
)}
{dialog === "routingFee" && <RoutingFeeDialogContent channel={channel} />}
Expand Down

0 comments on commit 8eea653

Please sign in to comment.