Skip to content

Commit 12d0f39

Browse files
committedDec 23, 2021
feat(website): fix guides
1 parent d7e7926 commit 12d0f39

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed
 

‎website/src/components/Layout.js ‎website/src/components/Layout.tsx

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
import React from 'react'
1+
import React, { PropsWithChildren } from 'react'
22
import styled from 'styled-components'
33
import Header from './Header'
44
import media from '../theming/mediaQueries'
5+
// @ts-ignore
56
import MiniNav from './nav/MiniNav'
67

7-
/*
8-
Layout.propTypes = {
9-
children: PropTypes.node.isRequired,
10-
}
11-
*/
12-
13-
const Layout = ({ children }) => {
8+
const Layout = ({ children }: PropsWithChildren<{}>) => {
149
return (
1510
<>
1611
<Header />

‎website/src/components/components/explorer/ComponentsExplorer.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const ComponentsExplorer = ({ location, navigate }) => {
1414
const params = new URLSearchParams(location.search)
1515
return [params.get('q'), params.get('filter')]
1616
}, [location.search])
17+
1718
const handleSearch = useCallback(
1819
term => {
1920
const params = new URLSearchParams()
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.