-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ability to disable external links in the footer (#374)
- Loading branch information
Showing
5 changed files
with
97 additions
and
42 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,14 +1,17 @@ | ||
import React from "react"; | ||
import { storiesOf } from "@storybook/react"; | ||
import { text } from "@storybook/addon-knobs/react"; | ||
import { boolean, text } from "@storybook/addon-knobs/react"; | ||
import AppFooter from "./AppFooter"; | ||
import { withInfo } from "@storybook/addon-info"; | ||
|
||
const stories = storiesOf("Components|App Footer", module); | ||
|
||
stories.add( | ||
"default", | ||
withInfo( | ||
"AppFooter for Decipher products. You can supply a `copyrightText` prop which can be an element, node, or string. This can be useful if your app supports i18n. Otherwise, the AppFooter will default to the English copyright text: 'Copyright © 2018 Decipher Technology Studios. All rights reserved. Copyright © 2018 Grey Matter, a Decipher Technology Studios product. All rights reserved.'" | ||
)(() => <AppFooter copyrightText={text("copyrightText")} />) | ||
withInfo("AppFooter for Grey Matter products.")(() => ( | ||
<AppFooter | ||
copyrightText={text("copyrightText")} | ||
useExternalLinks={boolean("useExternalLinks", true)} | ||
/> | ||
)) | ||
); |
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
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