Skip to content

Commit

Permalink
feat: added discourse header button (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpaten committed Nov 19, 2024
1 parent 3837601 commit 5c6cf4e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/components/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down
2 changes: 2 additions & 0 deletions site-config/brc-analytics/local/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -55,6 +56,7 @@ export function makeConfig(browserUrl: string): SiteConfig {
],
undefined,
],
socialMedia: socialMedia,
},
},
redirectRootToPath: "/",
Expand Down
18 changes: 18 additions & 0 deletions site-config/brc-analytics/local/socialMedia.ts
Original file line number Diff line number Diff line change
@@ -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,
},
],
};

0 comments on commit 5c6cf4e

Please sign in to comment.