From f6c4468f93d462160045286d3fae33c06dbe39dc Mon Sep 17 00:00:00 2001 From: imagoiq <12294151+imagoiq@users.noreply.github.com> Date: Mon, 13 Nov 2023 12:20:12 +0100 Subject: [PATCH] Make editGithubUrl a optional --- packages/documentation/.storybook/blocks/footer.tsx | 10 ++++++---- packages/documentation/.storybook/blocks/layout.tsx | 3 ++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/documentation/.storybook/blocks/footer.tsx b/packages/documentation/.storybook/blocks/footer.tsx index 4475b58911..75d20668eb 100644 --- a/packages/documentation/.storybook/blocks/footer.tsx +++ b/packages/documentation/.storybook/blocks/footer.tsx @@ -35,12 +35,14 @@ function getGitHubUrl(path: String) { return `${BASEURL}${path.replace(/^\./, '').replace(/\.stories\.ts$/, '.docs.mdx')}`; } -export default (params: { pathToStoryFile: String }) => ( +export default (params: { pathToStoryFile?: String }) => ( <>
- - Edit this page on GitHub - + {params.pathToStoryFile && ( + + Edit this page on GitHub + + )}