wip: Frontend for quick pay

This commit is contained in:
2025-07-18 11:49:42 +05:30
parent a6af487b67
commit f67319762f
8 changed files with 466 additions and 122 deletions

View File

@@ -44,7 +44,13 @@ export default function RootLayout({ children }: { children: React.ReactNode })
const data = await response.json();
if (response.ok) {
return data;
} else {
}
else if(response.status ===401 ||data.message === 'invalid or expired token'){
// console.log(data);
localStorage.removeItem("access_token");
router.push('/login');
}
else {
notifications.show({
withBorder: true,
color: "red",