feat: Implemented page for quick pay and send to beneficiary feature for own and outside bank
ci: Modify the design of login page ci : modify the logic of home page, If no account is present then statement button change to apply now
This commit is contained in:
30
src/app/(main)/funds_transfer/view_beneficiary/page.tsx
Normal file
30
src/app/(main)/funds_transfer/view_beneficiary/page.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
"use client";
|
||||
|
||||
import React, { useEffect, useRef, useState } from "react";
|
||||
import { Button, Group, Modal, Paper, Radio, ScrollArea, Select, Stack, Text, TextInput, Title } from "@mantine/core";
|
||||
import { notifications } from "@mantine/notifications";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
export default function ViewBeneficiary() {
|
||||
const router = useRouter();
|
||||
const [authorized, setAuthorized] = useState<boolean | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
const token = localStorage.getItem("access_token");
|
||||
if (!token) {
|
||||
setAuthorized(false);
|
||||
router.push("/login");
|
||||
} else {
|
||||
setAuthorized(true);
|
||||
}
|
||||
}, []);
|
||||
|
||||
if (!authorized) return null;
|
||||
|
||||
return (
|
||||
<Paper shadow="sm" radius="md" p="md" withBorder h={400}>
|
||||
<Text>View beneficiary feature coming soon.</Text>
|
||||
</Paper>
|
||||
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user