From 7103019890960e793deefb64987a09b33be60b42 Mon Sep 17 00:00:00 2001
From: Michael Hunteman <michael@huntm.net>
Date: Fri, 17 May 2024 15:20:30 -0700
Subject: Add golang server

---
 src/components/Admin.tsx | 31 -------------------------------
 1 file changed, 31 deletions(-)
 delete mode 100644 src/components/Admin.tsx

(limited to 'src/components/Admin.tsx')

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;
-- 
cgit v1.2.3

