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 aac56f2..b6b7d8e 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"; @@ -68,6 +69,7 @@ export function makeConfig(browserUrl: string, gitHubUrl: 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, + }, + ], +};