diff --git a/src/components/FeatureRequest.tsx b/src/components/FeatureRequest.tsx index 7183eb5..e5ea26c 100644 --- a/src/components/FeatureRequest.tsx +++ b/src/components/FeatureRequest.tsx @@ -1,3 +1,5 @@ +import { ArrowDropUp } from "@mui/icons-material"; +import { Box, Button, Chip, Paper, Typography } from "@mui/material"; import { FC } from "react"; import { FeatureRequestGetResponse } from "../api/generated"; @@ -7,10 +9,44 @@ interface FeatureRequestProps { const FeatureRequest: FC = ({ featureRequest }) => { return ( -
-

{featureRequest.title}

-

{featureRequest.content}

-
+ + + + + + {featureRequest.title} + + {featureRequest.content} + + + + ); }; diff --git a/src/routes/Root.tsx b/src/routes/Root.tsx index b4e522a..bbbf577 100644 --- a/src/routes/Root.tsx +++ b/src/routes/Root.tsx @@ -7,7 +7,11 @@ import FeatureRequest from "../components/FeatureRequest"; import Layout from "../components/Layout"; const Root: FC = () => { - const { isLoading, error, data } = useQuery({ + const { + isLoading, + error, + data: featureRequests, + } = useQuery({ queryKey: ["feature-requests"], queryFn: getFeatureRequests, }); @@ -23,20 +27,20 @@ const Root: FC = () => { if (error) return Error: {error.message}; - if (!data) + if (!featureRequests) return No data yet, try creating a feature request; return ( - - - {data.map((featureRequest) => ( + + {featureRequests.map((featureRequest) => ( + - ))} - + + ))} );