Skip to content

Commit

Permalink
help and fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle committed Oct 29, 2023
1 parent 59aabc2 commit 40cd50f
Show file tree
Hide file tree
Showing 9 changed files with 445 additions and 39 deletions.
17 changes: 16 additions & 1 deletion ui/src/components/General/HelpIcon/components/Help/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,23 @@ import React from "react";
interface HelpProps {
helpObject: HelpEntry;
}

const Help: React.FC<HelpProps> = ({ helpObject }) => {
return <h1>{helpObject.description}</h1>;
return (
<div>
<p>{helpObject.description}</p>
{helpObject.helpTexts.map((helpText, index) => (
<div key={index}>
<h4>{helpText.title}</h4>
<ul>
{helpText.bulletPoints.map((bulletPoint, bpIndex) => (
<li key={bpIndex}>{bulletPoint}</li>
))}
</ul>
</div>
))}
</div>
);
};

export default Help;
9 changes: 7 additions & 2 deletions ui/src/data/featureData.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { routesById } from "data/routeData";
import { RouteId, routesById } from "data/routeData";

interface LibraryList {
[key: string]: string;
Expand Down Expand Up @@ -27,7 +27,7 @@ const LIBRARY_URLS: LibraryList = {
};

interface Feature {
key: string;
key: RouteId;
name: string;
shortDescription: string;
fullDescription: string;
Expand Down Expand Up @@ -344,3 +344,8 @@ export const FEATURE_DATA: Feature[] = [
// library: [{ name: "Vanilla JS", url: "" }],
// },
];

export const featuresById = FEATURE_DATA.reduce((acc, feature) => {
acc[feature.key] = feature;
return acc;
}, {} as Record<RouteId, Feature>);
Loading

0 comments on commit 40cd50f

Please sign in to comment.