Skip to content

Commit

Permalink
move getNetworkConfig out of the react method
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwbabylonlab committed Dec 9, 2024
1 parent de94875 commit d6db71e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/components/Modals/UnbondModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ interface UnbondModalProps {
onProceed: () => void;
awaitingWalletResponse: boolean;
}
const { networkName, coinName } = getNetworkConfig();

export const UnbondModal = ({
isOpen,
onClose,
onProceed,
awaitingWalletResponse,
}: UnbondModalProps) => {
const { networkName, coinName } = getNetworkConfig();
const isMobileView = useIsMobileView();

const DialogComponent = isMobileView ? MobileDialog : Dialog;

return (
Expand Down

0 comments on commit d6db71e

Please sign in to comment.