Skip to content

Commit

Permalink
fixed a name
Browse files Browse the repository at this point in the history
  • Loading branch information
AkihisaY committed Jan 22, 2025
1 parent c445283 commit a827a78
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/website/src/features/Packages/Function.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ export const Function: FC<FunctionProps> = ({
const [simulatedSender, setSimulatedSender] = useState<Address>(zeroAddress);

const [isPopoverOpen, setIsPopoverOpen] = useState(false);
const inPopoverRef = useRef<HTMLDivElement>(null);
const popoverRef = useRef<HTMLDivElement>(null);

useEffect(() => {
const handleClickOutside = (event: Event) => {
if (
inPopoverRef.current &&
!inPopoverRef.current.contains(event.target as Node)
popoverRef.current &&
!popoverRef.current.contains(event.target as Node)
) {
setIsPopoverOpen(false);
}
Expand Down Expand Up @@ -455,7 +455,7 @@ export const Function: FC<FunctionProps> = ({
Call function
</Button>
</PopoverTrigger>
<PopoverContent className="w-80" ref={inPopoverRef}>
<PopoverContent className="w-80" ref={popoverRef}>
<Label>
Simulated Sender{' '}
<span className="text-xs text-muted-foreground ml-0.5">
Expand Down Expand Up @@ -514,7 +514,7 @@ export const Function: FC<FunctionProps> = ({
Simulate transaction
</Button>
</PopoverTrigger>
<PopoverContent className="w-80" ref={inPopoverRef}>
<PopoverContent className="w-80" ref={popoverRef}>
<Label>Simulated Sender</Label>
<div className="grid gap-4 mt-1">
<AddressInput
Expand Down

0 comments on commit a827a78

Please sign in to comment.