diff --git a/frontend/src/components/search-card/SearchCard.tsx b/frontend/src/components/search-card/SearchCard.tsx index c361d3e..1c4b2da 100644 --- a/frontend/src/components/search-card/SearchCard.tsx +++ b/frontend/src/components/search-card/SearchCard.tsx @@ -4,19 +4,27 @@ import { SearchCardEvent } from "./SearchCardEvent"; import { SearchCardLocation } from "./SearchCardLocation"; import { SearchCardNote } from "./SearchCardNote"; -export const SearchCard = (props: { item: UserImage }) => { - const { item } = props; +const UnwrappedSearchCard = (props: { item: UserImage }) => { + const { item } = props; - switch (item.type) { - case "location": - return ; - case "event": - return ; - case "note": - return ; - case "contact": - return ; - default: - return null; - } + switch (item.type) { + case "location": + return ; + case "event": + return ; + case "note": + return ; + case "contact": + return ; + default: + return null; + } +}; + +export const SearchCard = (props: { item: UserImage }) => { + return ( +
+ +
+ ); }; diff --git a/frontend/src/gallery/index.tsx b/frontend/src/gallery/index.tsx index 228a3e3..25ab59b 100644 --- a/frontend/src/gallery/index.tsx +++ b/frontend/src/gallery/index.tsx @@ -1,5 +1,5 @@ import { Component, For, Show } from "solid-js"; -import { useParams } from "@solidjs/router"; +import { A, useParams } from "@solidjs/router"; import { union, literal, safeParse, InferOutput, parse } from "valibot"; import { useSearchImageContext } from "../contexts/SearchImageContext"; import { SearchCard } from "../components/search-card/SearchCard"; @@ -24,9 +24,9 @@ const EntityGallery: Component<{ images().filter((i) => i.type === props.entity); return ( -
-

{props.entity}s

-
+
+

{props.entity}s

+
{(category) => } @@ -44,6 +44,7 @@ export const Gallery: Component = () => { when={validated.success} fallback={

Sorry, this entity is not supported

} > + Home );