From f81bafe42cff7c3c13fd6cf0799de574219b83a8 Mon Sep 17 00:00:00 2001 From: Meg Stepp Date: Mon, 23 Sep 2024 13:30:10 -0400 Subject: [PATCH] change map to forEach, use better tailwind --- apps/dashboard/app/(app)/settings/root-keys/new/client.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/dashboard/app/(app)/settings/root-keys/new/client.tsx b/apps/dashboard/app/(app)/settings/root-keys/new/client.tsx index cb0e9ba801..cd2272d313 100644 --- a/apps/dashboard/app/(app)/settings/root-keys/new/client.tsx +++ b/apps/dashboard/app/(app)/settings/root-keys/new/client.tsx @@ -72,7 +72,7 @@ export const Client: React.FC = ({ apis }) => { }; const initialCardStates: CardStates = {}; - apis.map((api) => { + apis.forEach((api) => { initialCardStates[api.id] = false; }); const [cardStatesMap, setCardStatesMap] = useState(initialCardStates); @@ -161,13 +161,13 @@ export const Client: React.FC = ({ apis }) => { {api.name}