From 22976ccc7aaee0d845f4affd39d255280b77eb72 Mon Sep 17 00:00:00 2001 From: Marsn3 Date: Fri, 14 Feb 2025 07:47:00 +0100 Subject: [PATCH] Sort by creation date by default and subtler text color for context --- src/QuoteInfo.tsx | 2 +- src/QuoteList.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QuoteInfo.tsx b/src/QuoteInfo.tsx index 83bc7e5..c512b04 100644 --- a/src/QuoteInfo.tsx +++ b/src/QuoteInfo.tsx @@ -10,7 +10,7 @@ export default function QuoteInfo({ quote }: QuoteInfoProps) { //TODO: Bettes Colors

{quote.quote}

- {quote.context &&

{quote.context}

} + {quote.context &&

{quote.context}

}

Author:

{quote.author}

diff --git a/src/QuoteList.tsx b/src/QuoteList.tsx index 4c354a2..cad5a86 100644 --- a/src/QuoteList.tsx +++ b/src/QuoteList.tsx @@ -28,7 +28,7 @@ export default function QuoteList() { }) const getQuotes = async () => { try { - const records = await pb.collection(`${collection}`).getFullList({ requestKey: null }); + const records = await pb.collection(`${collection}`).getFullList({ sort: "-created", requestKey: null }); setQuotes(records); } catch (err: any) { setError(err)