Skip to content

Commit

Permalink
Merge pull request #1127 from mi6/1118-add-tree-view-component-to-com…
Browse files Browse the repository at this point in the history
…ponent-gallery

1118 add tree view to comp gallery
  • Loading branch information
GCHQ-Developer-847 authored Sep 17, 2024
2 parents fdbb234 + c4b9883 commit 99cfb06
Show file tree
Hide file tree
Showing 3 changed files with 606 additions and 550 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/components/ComponentGallery/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import Toast from "./ComponentImages/toast-comp-gallery.png";
import Togglebutton from "./ComponentImages/toggle-button-comp-gallery.png";
import Tooltip from "./ComponentImages/tooltip-comp-gallery.png";
import Topnavigation from "./ComponentImages/top-navigation-comp-gallery.png";
import Treeview from "./ComponentImages/tree-view-comp-gallery.png";
import Typography from "./ComponentImages/typography-comp-gallery.png";
import PlaceHolder from "./ComponentImages/placeholder-comp-gallery.png";

Expand Down Expand Up @@ -84,6 +85,7 @@ const ComponentImages: { [key: string]: any } = {
Togglebutton,
Tooltip,
Topnavigation,
Treeview,
Typography,
};

Expand All @@ -103,7 +105,7 @@ const ComponentGallery: React.FC = () => {
<GatsbyLink to={path}>
<ic-card message={subTitle} full-width clickable>
<img
src={ComponentImages[title.replace(/ /g, "")] || PlaceHolder}
src={ComponentImages[title.replace(/[- ]/g, "")] || PlaceHolder}
slot="image-top"
alt={title}
width="100%"
Expand Down
Loading

0 comments on commit 99cfb06

Please sign in to comment.