Skip to content

Commit

Permalink
feat: persistent help / feedback button (#81)
Browse files Browse the repository at this point in the history
Fran McDade authored and Fran McDade committed Sep 20, 2024
1 parent f5f58ae commit ee09603
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { ViewSupport } from "@databiosphere/findable-ui/lib/components/Support/components/ViewSupport/viewSupport";
import styled from "@emotion/styled";

export const StyledViewSupport = styled(ViewSupport)`
background-color: #28285b;
&:hover {
background-color: #1f1f47;
}
`;
2 changes: 2 additions & 0 deletions site-config/brc-analytics/local/config.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ import { BRCDataCatalogGenome } from "../../../app/apis/catalog/brc-analytics-ca
import * as C from "../../../app/components";
import * as P from "../../../app/theme/common/palette";
import { ROUTES } from "../../../routes/constants";
import { floating } from "./floating/floating";
import { genomeEntityConfig } from "./index/genomeEntityConfig";

const LOCALHOST = "http://localhost:3000";
@@ -35,6 +36,7 @@ export function makeConfig(browserUrl: string): SiteConfig {
entities: [genomeEntityConfig as EntityConfig<BRCDataCatalogGenome>],
explorerTitle: APP_TITLE,
layout: {
floating,
footer: {
Branding: C.Branding(),
},
16 changes: 16 additions & 0 deletions site-config/brc-analytics/local/floating/floating.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {
ComponentConfig,
FloatingConfig,
} from "@databiosphere/findable-ui/lib/config/entities";
import { StyledViewSupport } from "../../../../app/components/Support/components/ViewSupport/viewSupport.styles";

export const floating: FloatingConfig = {
components: [
{
component: StyledViewSupport,
props: {
url: "https://docs.google.com/forms/d/e/1FAIpQLSd8f5hrd1-ECgPUbS5dL9njoU1nvCSN5ukykKk9mF6WAyTh6A/viewform?usp=sf_link",
},
} as ComponentConfig<typeof StyledViewSupport>,
],
};

0 comments on commit ee09603

Please sign in to comment.