summaryrefslogtreecommitdiff
path: root/src/components/Admin.tsx
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-05-17 15:20:30 -0700
committerMichael Hunteman <michael@huntm.net>2024-05-17 15:20:30 -0700
commit7103019890960e793deefb64987a09b33be60b42 (patch)
treec1c9402aa250c68b2cbe13d62598232bbf20b1e2 /src/components/Admin.tsx
parentfc5c111bcfe296bec82e1cf9fdb88fc80fb24f89 (diff)
Add golang server
Diffstat (limited to 'src/components/Admin.tsx')
-rw-r--r--src/components/Admin.tsx31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/components/Admin.tsx b/src/components/Admin.tsx
deleted file mode 100644
index 1c941a5..0000000
--- a/src/components/Admin.tsx
+++ /dev/null
@@ -1,31 +0,0 @@
-import React from 'react';
-import { useGetGuestsQuery } from '../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;