Skip to content

Commit c12414e

Browse files
author
Jonah Paten
authored
feat: added discourse header/footer button (#88) (#180)
* feat: added discourse header button (#88) * content: added discourse link to footer (#88) * fix: navlinks open in new tab (#88)
1 parent 4d80b82 commit c12414e

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

app/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export { Alert } from "@databiosphere/findable-ui/lib/components/common/Alert/alert";
22
export { Breadcrumbs } from "@databiosphere/findable-ui/lib/components/common/Breadcrumbs/breadcrumbs";
3+
export { DiscourseIcon } from "@databiosphere/findable-ui/lib/components/common/CustomIcon/components/DiscourseIcon/discourseIcon";
34
export { Grid } from "@databiosphere/findable-ui/lib/components/common/Grid/grid";
45
export { KeyElType } from "@databiosphere/findable-ui/lib/components/common/KeyValuePairs/components/KeyElType/keyElType";
56
export { KeyValueElType } from "@databiosphere/findable-ui/lib/components/common/KeyValuePairs/components/KeyValueElType/keyValueElType";

site-config/brc-analytics/local/config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import { ANCHOR_TARGET } from "@databiosphere/findable-ui/lib/components/Links/common/entities";
12
import { SiteConfig } from "@databiosphere/findable-ui/lib/config/entities";
23
import { EntityConfig } from "@databiosphere/findable-ui/src/config/entities";
34
import { BRCDataCatalogGenome } from "../../../app/apis/catalog/brc-analytics-catalog/common/entities";
45
import * as C from "../../../app/components";
56
import { ROUTES } from "../../../routes/constants";
67
import { floating } from "./floating/floating";
78
import { genomeEntityConfig } from "./index/genomeEntityConfig";
9+
import { socialMedia } from "./socialMedia";
810

911
const LOCALHOST = "http://localhost:3000";
1012
const APP_TITLE = "BRC Analytics";
@@ -43,13 +45,16 @@ export function makeConfig(browserUrl: string, gitHubUrl: string): SiteConfig {
4345
navLinks: [
4446
{
4547
label: "BV-BRC",
48+
target: ANCHOR_TARGET.BLANK,
4649
url: "https://www.bv-brc.org/",
4750
},
4851
{
4952
label: "Pathogen Data Network",
53+
target: ANCHOR_TARGET.BLANK,
5054
url: "https://pathogendatanetwork.org/",
5155
},
5256
],
57+
socials: socialMedia.socials,
5358
versionInfo: true,
5459
},
5560
header: {
@@ -68,6 +73,7 @@ export function makeConfig(browserUrl: string, gitHubUrl: string): SiteConfig {
6873
],
6974
undefined,
7075
],
76+
socialMedia: socialMedia,
7177
},
7278
},
7379
redirectRootToPath: "/",
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { SocialMedia } from "@databiosphere/findable-ui/lib/components/Layout/components/Header/common/entities";
2+
import * as C from "../../../app/components";
3+
4+
export const SOCIALS = {
5+
DISCOURSE: {
6+
label: "Discourse",
7+
url: "https://help.brc-analytics.org/",
8+
},
9+
};
10+
11+
export const socialMedia: SocialMedia = {
12+
socials: [
13+
{
14+
...SOCIALS.DISCOURSE,
15+
Icon: C.DiscourseIcon,
16+
},
17+
],
18+
};

0 commit comments

Comments
 (0)