implement admin panel with login functionality and dashboard layout
This commit is contained in:
7
admin/src/components/ItemTable.tsx
Normal file
7
admin/src/components/ItemTable.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
const ItemTable: React.FC = () => {
|
||||
return <>Item Table</>;
|
||||
};
|
||||
|
||||
export default ItemTable;
|
7
admin/src/components/LoanTable.tsx
Normal file
7
admin/src/components/LoanTable.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
const LoanTable: React.FC = () => {
|
||||
return <>Loan Table</>;
|
||||
};
|
||||
|
||||
export default LoanTable;
|
7
admin/src/components/LockerTable.tsx
Normal file
7
admin/src/components/LockerTable.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
const LockerTable: React.FC = () => {
|
||||
return <>Locker Table</>;
|
||||
};
|
||||
|
||||
export default LockerTable;
|
7
admin/src/components/UserTable.tsx
Normal file
7
admin/src/components/UserTable.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from "react";
|
||||
|
||||
const UserTable: React.FC = () => {
|
||||
return <>User Table</>;
|
||||
};
|
||||
|
||||
export default UserTable;
|
21
admin/src/components/myChakra/MyAlert.tsx
Normal file
21
admin/src/components/myChakra/MyAlert.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from "react";
|
||||
import { Alert } from "@chakra-ui/react";
|
||||
|
||||
type MyAlertProps = {
|
||||
title: string;
|
||||
description: string;
|
||||
};
|
||||
|
||||
const MyAlert: React.FC<MyAlertProps> = ({ title, description }) => {
|
||||
return (
|
||||
<Alert.Root status="error">
|
||||
<Alert.Indicator />
|
||||
<Alert.Content>
|
||||
<Alert.Title>{title}</Alert.Title>
|
||||
<Alert.Description>{description}</Alert.Description>
|
||||
</Alert.Content>
|
||||
</Alert.Root>
|
||||
);
|
||||
};
|
||||
|
||||
export default MyAlert;
|
Reference in New Issue
Block a user