From ec368169fb4c7782834c626d77f6afab7924cd05 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 1 Apr 2023 18:52:30 -0400 Subject: fix share button Signed-off-by: Xe Iaso --- src/frontend/build.ts | 1 + src/frontend/components/ConvSnippet.tsx | 10 ++++++---- src/frontend/components/MastodonShareButton.tsx | 4 ++-- src/frontend/components/NoFunAllowed.tsx | 18 ++++++++++++++++++ 4 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 src/frontend/components/NoFunAllowed.tsx (limited to 'src/frontend') diff --git a/src/frontend/build.ts b/src/frontend/build.ts index 3814e88..07fc548 100644 --- a/src/frontend/build.ts +++ b/src/frontend/build.ts @@ -8,6 +8,7 @@ const result = await esbuild.build({ entryPoints: [ "./components/ConvSnippet.tsx", "./components/MastodonShareButton.tsx", + "./components/NoFunAllowed.tsx", "./components/Video.tsx", "./components/WASITerm.tsx", ], diff --git a/src/frontend/components/ConvSnippet.tsx b/src/frontend/components/ConvSnippet.tsx index 375ed9a..9644333 100644 --- a/src/frontend/components/ConvSnippet.tsx +++ b/src/frontend/components/ConvSnippet.tsx @@ -12,8 +12,8 @@ const ConvSnippet = ({ name, mood, children }: ConvSnippetProps) => { name = name.replace(" ", "_"); return ( -
-
+
+
{
- < + {"<"} + {name} - > {children} + + {">"} {children}
); diff --git a/src/frontend/components/MastodonShareButton.tsx b/src/frontend/components/MastodonShareButton.tsx index 03fe596..71395b3 100644 --- a/src/frontend/components/MastodonShareButton.tsx +++ b/src/frontend/components/MastodonShareButton.tsx @@ -51,7 +51,7 @@ ${series ? "#" + series + " " : ""}${ {tootBox}
diff --git a/src/frontend/components/NoFunAllowed.tsx b/src/frontend/components/NoFunAllowed.tsx new file mode 100644 index 0000000..abe323b --- /dev/null +++ b/src/frontend/components/NoFunAllowed.tsx @@ -0,0 +1,18 @@ +// @jsxImportSource xeact +// @jsxRuntime automatic + +import { c } from "xeact"; + +export default function NoFunAllowed() { + return ( + + ); +} -- cgit v1.2.3