From 74114359240ab54582db107f38d7762efb392504 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 24 Oct 2023 18:05:02 -0300 Subject: [PATCH] fix(modals): change single quotes to double quotes for consistency in StoreApiKeyModal component feat(modals): add support for storing API key in StoreApiKeyModal component fix(pages): add missing imports and state hook in MarketCardComponent feat(pages): update button text and functionality in MarketCardComponent fix(pages): update label text in StorePage component fix(utils): add missing imports for GitBranchPlus and BookmarkPlus icons in styleUtils --- .../src/modals/StoreApiKeyModal/index.tsx | 2 +- .../StorePage/components/market-card.tsx | 24 +++++++++++++++++++ src/frontend/src/pages/StorePage/index.tsx | 2 +- src/frontend/src/utils/styleUtils.ts | 4 ++++ 4 files changed, 30 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/modals/StoreApiKeyModal/index.tsx b/src/frontend/src/modals/StoreApiKeyModal/index.tsx index 2d1a22be5..544e5391c 100644 --- a/src/frontend/src/modals/StoreApiKeyModal/index.tsx +++ b/src/frontend/src/modals/StoreApiKeyModal/index.tsx @@ -51,7 +51,7 @@ export default function StoreApiKeyModal({ setSuccessData({ title: "Success! Your API Key has been saved.", }); - storeApiKey('9bxW74lS1qee3UWKMx3Vydxu5wxPqC8W'); + storeApiKey("9bxW74lS1qee3UWKMx3Vydxu5wxPqC8W"); setOpen(false); }, (error) => { diff --git a/src/frontend/src/pages/StorePage/components/market-card.tsx b/src/frontend/src/pages/StorePage/components/market-card.tsx index b11389f84..25343c090 100644 --- a/src/frontend/src/pages/StorePage/components/market-card.tsx +++ b/src/frontend/src/pages/StorePage/components/market-card.tsx @@ -1,5 +1,8 @@ import { Link, ToyBrick } from "lucide-react"; +import { useState } from "react"; +import IconComponent from "../../../components/genericIconComponent"; import { Badge } from "../../../components/ui/badge"; +import { Button } from "../../../components/ui/button"; import { Card, CardDescription, @@ -16,6 +19,8 @@ export const MarketCardComponent = ({ data: FlowComponent; onAdd: () => void; }) => { + const [added, setAdded] = useState(false); + return (
@@ -86,6 +91,25 @@ export const MarketCardComponent = ({ Added )} */} +
diff --git a/src/frontend/src/pages/StorePage/index.tsx b/src/frontend/src/pages/StorePage/index.tsx index 5f8524980..576d01946 100644 --- a/src/frontend/src/pages/StorePage/index.tsx +++ b/src/frontend/src/pages/StorePage/index.tsx @@ -135,7 +135,7 @@ export default function StorePage(): JSX.Element {
- Installed Only + Added Only