diff --git a/src/styleguide/route.tsx b/src/styleguide/route.tsx index 7a48c53..3f3c9c0 100644 --- a/src/styleguide/route.tsx +++ b/src/styleguide/route.tsx @@ -11,7 +11,7 @@ type StyleguidePageProps = { }; }; -const Styleguide = +const Route = (content: StyleguideContent, path: string = '/styleguide') => ({ params: { slug } }: StyleguidePageProps) => { if (!process.env.ENABLE_STYLEGUIDE) { @@ -23,4 +23,4 @@ const Styleguide = return ; }; -export default Styleguide; +export default Route;