summaryrefslogtreecommitdiff
path: root/client/src/components/Admin.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/Admin.tsx')
-rw-r--r--client/src/components/Admin.tsx31
1 files changed, 0 insertions, 31 deletions
diff --git a/client/src/components/Admin.tsx b/client/src/components/Admin.tsx
deleted file mode 100644
index f1845b4..0000000
--- a/client/src/components/Admin.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import React from 'react';
-import { useGetGuestsQuery } from '../slices/apiSlice';
-
-function Admin() {
- const {
- data: guests,
- isLoading,
- isSuccess,
- isError,
- error,
- } = useGetGuestsQuery();
-
- let content;
-
- if (isLoading) {
- content = <p>Loading...</p>;
- } else if (isSuccess) {
- content = JSON.stringify(guests);
- } else if (isError) {
- content = <>{error.toString()}</>;
- }
-
- return (
- <>
- <p>Admin</p>
- {content}
- </>
- );
-}
-
-export default Admin;