diff --git a/src/App.tsx b/src/App.tsx
index c9a45d0..8ffa41d 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,5 +1,5 @@
import QuoteList from "./QuoteList";
export default function App() {
- return
Hello World!
+ //TODO: Bettes Colors +{quote.quote}
+ {quote.context &&{quote.context}
} +Author:
+{quote.author}
+Date:
+{quote.date}
+(null) const [loading, setLoading] = useState(true) const [error, setError] = useState (null) - const [collection, setCollection] = useState (Collections.QtKfk) + const [collection, setCollection] = useState (Collections.QtBit) useEffect(() => { pb.realtime.subscribe(`${collection}`, function (e) { @@ -39,17 +39,27 @@ export default function QuoteList() { } useEffect(() => { getQuotes() - }, []) + }, [collection]) return ( //TODO: Add Quote source selection - - +++ +{loading ? (Loading...
) : ( //TODO: Replace div with styled QuoteInfo component -+- {quotes != null ? (quotes.map((quote) => () } diff --git a/src/index.css b/src/index.css index 73a943c..19e4a1a 100644 --- a/src/index.css +++ b/src/index.css @@ -1 +1,6 @@ -@import "tailwindcss" +@import "tailwindcss"; + +:root,#root { + @apply bg-zinc-100 dark:bg-slate-700 text-black dark:text-white min-h-screen font-mono; + --box: -20px 20px 0px 0px #000000; +} diff --git a/src/pocketbase-types.ts b/src/pocketbase-types.ts index 3821235..e6596bc 100644 --- a/src/pocketbase-types.ts +++ b/src/pocketbase-types.ts @@ -37,6 +37,7 @@ export type Quote = { author: string context?: string created?: IsoDateString + date: IsoDateString id: string quote: string updated?: IsoDateString{quote.quote}))) : (No Quotes
)} + {/* {quotes != null ? (quotes.map((quote) => ({quote.quote}))) : (No Quotes
)} */} + {quotes != null ? (quotes.map((quote) => ())) : ( No Quotes
)}