diff --git a/src/components/Accessibility/AccessibilityStatement.stories.tsx b/src/components/Accessibility/AccessibilityStatement.stories.tsx index d09c94a..ecdf019 100644 --- a/src/components/Accessibility/AccessibilityStatement.stories.tsx +++ b/src/components/Accessibility/AccessibilityStatement.stories.tsx @@ -11,6 +11,7 @@ type Story = StoryObj; export const AccessibilityStatement: Story = { args: { + accessibilityStatementUrl: '#accessibility', teamEmail: 'team@example.com', sendReportProblemGaEvent: () => console.log('Email us to report a problem'), scrollSection: "" diff --git a/src/components/Accessibility/AccessibilityStatement.tsx b/src/components/Accessibility/AccessibilityStatement.tsx index 97098bc..410560f 100644 --- a/src/components/Accessibility/AccessibilityStatement.tsx +++ b/src/components/Accessibility/AccessibilityStatement.tsx @@ -4,12 +4,14 @@ import FiberManualRecordIcon from '@mui/icons-material/FiberManualRecord'; import {drtTheme} from "../../index"; export interface IAccessibilityStatementProps { + accessibilityStatementUrl: string teamEmail: string; sendReportProblemGaEvent: () => void; scrollSection: string; } export const AccessibilityStatement = ({ + accessibilityStatementUrl, teamEmail, sendReportProblemGaEvent, scrollSection @@ -36,37 +38,37 @@ export const AccessibilityStatement = ({ In this page: - + - + - + - + - + - + diff --git a/src/components/Footer/BottomBar.stories.tsx b/src/components/Footer/BottomBar.stories.tsx index aa9f382..adbcaf7 100644 --- a/src/components/Footer/BottomBar.stories.tsx +++ b/src/components/Footer/BottomBar.stories.tsx @@ -11,9 +11,9 @@ type Story = StoryObj; export const BottomBar: Story = { args: { - title: 'Accessibility Statement', email: 'team@example.com', onClickAccessibilityStatement: () => console.log('Click Accessibility'), - url: 'http://localhost:6006' + accessibilityStatementUrl: '/#accessibility', + feedbackUrl: 'http://localhost:6006' } }; \ No newline at end of file diff --git a/src/components/Footer/BottomBar.tsx b/src/components/Footer/BottomBar.tsx index f7fd1a4..4de2bbd 100644 --- a/src/components/Footer/BottomBar.tsx +++ b/src/components/Footer/BottomBar.tsx @@ -4,10 +4,11 @@ import {AppBar, Link, Toolbar, Typography} from "@mui/material"; export interface BottomBarProps { email: string; onClickAccessibilityStatement: () => void; - url: string; + accessibilityStatementUrl: string; + feedbackUrl: string; } -export const BottomBar = ({email, onClickAccessibilityStatement, url}: BottomBarProps) => { +export const BottomBar = ({email, onClickAccessibilityStatement, accessibilityStatementUrl ,feedbackUrl}: BottomBarProps) => { return ( Support links: Email us - { - onClickAccessibilityStatement(); - }}> + Accessibility statement - Give feedback + Give feedback );