Skip to content

Commit

Permalink
format files
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayaFoiger committed Aug 27, 2024
1 parent 7009a1e commit 48c39b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/lib/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const env = createEnv({
HYPERSWITCH_SANDBOX_BASE_URL: z.string().default("https://sandbox.hyperswitch.io"),
HYPERSWITCH_PROD_BASE_URL: z.string().default("https://api.hyperswitch.io"),
JUSPAY_SANDBOX_BASE_URL: z.string().default("https://sandbox.juspay.in"),
JUSPAY_PROD_BASE_URL: z.string().default( "https://api.juspay.in"),
JUSPAY_PROD_BASE_URL: z.string().default("https://api.juspay.in"),
},
/*
* Environment variables available on the client (and server).
Expand Down
22 changes: 14 additions & 8 deletions src/modules/ui/molecules/AddConfigButton/AddConfigButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ export const AddConfigButton = ({ ...props }: AddConfigButtonProps) => {
setState("prompt");
}, []);

const handleOutsideIndiaClick = useCallback<MouseEventHandler<HTMLButtonElement>>((e) => {
e.preventDefault();
void router.replace("/configurations/add/hyperswitch");
}, [router]);
const handleOutsideIndiaClick = useCallback<MouseEventHandler<HTMLButtonElement>>(
(e) => {
e.preventDefault();
void router.replace("/configurations/add/hyperswitch");
},
[router],
);

const handleIndiaClick = useCallback<MouseEventHandler<HTMLButtonElement>>((e) => {
e.preventDefault();
void router.replace("/configurations/add/juspay");
}, [router]);
const handleIndiaClick = useCallback<MouseEventHandler<HTMLButtonElement>>(
(e) => {
e.preventDefault();
void router.replace("/configurations/add/juspay");
},
[router],
);

const handleOpenChange = useCallback((open: boolean) => {
setState(open ? "prompt" : "idle");
Expand Down

0 comments on commit 48c39b3

Please sign in to comment.