diff --git a/website/src/components/code.js b/website/src/components/code.js index 6e9f0c22e..a6c3ef177 100644 --- a/website/src/components/code.js +++ b/website/src/components/code.js @@ -16,12 +16,14 @@ import classes from '../styles/code.module.sass' const WRAP_THRESHOLD = 30 const CLI_GROUPS = ['init', 'debug', 'project', 'ray', 'huggingface-hub'] -export default props => ( +const CodeBlock = props => (
)
+export default CodeBlock
+
export const Pre = props => {
return {props.children}} diff --git a/website/src/pages/404.js b/website/src/pages/404.js index 53baebab9..4904c11f3 100644 --- a/website/src/pages/404.js +++ b/website/src/pages/404.js @@ -6,7 +6,7 @@ import Template from '../templates/index' import { LandingHeader, LandingTitle } from '../components/landing' import Button from '../components/button' -export default ({ data, location }) => { +const page404 = ({ data, location }) => { const { nightly, legacy } = data.site.siteMetadata const pageContext = { title: '404 Error', searchExclude: true, isIndex: false } return ( @@ -26,6 +26,8 @@ export default ({ data, location }) => { ) } +export default page404 + export const pageQuery = graphql` query { site { diff --git a/website/src/widgets/features.js b/website/src/widgets/features.js index 73863d5cc..af18cf81c 100644 --- a/website/src/widgets/features.js +++ b/website/src/widgets/features.js @@ -3,7 +3,7 @@ import { graphql, StaticQuery } from 'gatsby' import { Ul, Li } from '../components/list' -export default () => ( +const Features = () => (