-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: persistent help / feedback button (#81)
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.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
app/components/Support/components/ViewSupport/viewSupport.styles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>, | ||
], | ||
}; |