From 5c6cf4e2140ae3d8a9f5319c4f4c3335e89c4bbd Mon Sep 17 00:00:00 2001 From: jpaten Date: Mon, 18 Nov 2024 16:52:49 -0800 Subject: [PATCH] feat: added discourse header button (#88) --- app/components/index.ts | 1 + site-config/brc-analytics/local/config.ts | 2 ++ site-config/brc-analytics/local/socialMedia.ts | 18 ++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 site-config/brc-analytics/local/socialMedia.ts diff --git a/app/components/index.ts b/app/components/index.ts index bf3c465..53ec783 100644 --- a/app/components/index.ts +++ b/app/components/index.ts @@ -1,5 +1,6 @@ export { Alert } from "@databiosphere/findable-ui/lib/components/common/Alert/alert"; export { Breadcrumbs } from "@databiosphere/findable-ui/lib/components/common/Breadcrumbs/breadcrumbs"; +export { DiscourseIcon } from "@databiosphere/findable-ui/lib/components/common/CustomIcon/components/DiscourseIcon/discourseIcon"; export { Grid } from "@databiosphere/findable-ui/lib/components/common/Grid/grid"; export { KeyElType } from "@databiosphere/findable-ui/lib/components/common/KeyValuePairs/components/KeyElType/keyElType"; export { KeyValueElType } from "@databiosphere/findable-ui/lib/components/common/KeyValuePairs/components/KeyValueElType/keyValueElType"; diff --git a/site-config/brc-analytics/local/config.ts b/site-config/brc-analytics/local/config.ts index 114f293..7e747c0 100644 --- a/site-config/brc-analytics/local/config.ts +++ b/site-config/brc-analytics/local/config.ts @@ -5,6 +5,7 @@ import * as C from "../../../app/components"; import { ROUTES } from "../../../routes/constants"; import { floating } from "./floating/floating"; import { genomeEntityConfig } from "./index/genomeEntityConfig"; +import { socialMedia } from "./socialMedia"; const LOCALHOST = "http://localhost:3000"; const APP_TITLE = "BRC Analytics"; @@ -55,6 +56,7 @@ export function makeConfig(browserUrl: string): SiteConfig { ], undefined, ], + socialMedia: socialMedia, }, }, redirectRootToPath: "/", diff --git a/site-config/brc-analytics/local/socialMedia.ts b/site-config/brc-analytics/local/socialMedia.ts new file mode 100644 index 0000000..f3cdb37 --- /dev/null +++ b/site-config/brc-analytics/local/socialMedia.ts @@ -0,0 +1,18 @@ +import { SocialMedia } from "@databiosphere/findable-ui/lib/components/Layout/components/Header/common/entities"; +import * as C from "../../../app/components"; + +export const SOCIALS = { + DISCOURSE: { + label: "Discourse", + url: "https://help.brc-analytics.org/", + }, +}; + +export const socialMedia: SocialMedia = { + socials: [ + { + ...SOCIALS.DISCOURSE, + Icon: C.DiscourseIcon, + }, + ], +};