Skip to content

Commit 61383b1

Browse files
committed
format
1 parent 5b5e69e commit 61383b1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/components/DocsLayout.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const useLocalCurrentVersion = create<{
129129
*/
130130
function useCurrentVersion(versions: string[]) {
131131
const navigate = useNavigate()
132-
132+
133133
const { version: paramsVersion } = useParams({
134134
strict: false,
135135
})
@@ -404,16 +404,16 @@ export function DocsLayout({
404404
</a>
405405
) : (
406406
<Link
407-
to={
408-
child.to.startsWith('/')
409-
? child.to
410-
: '/$libraryId/$version/docs/$'
411-
}
412-
params={{
413-
libraryId,
414-
version: params.version || 'latest',
415-
_splat: child.to,
416-
}}
407+
to={
408+
child.to.startsWith('/')
409+
? child.to
410+
: '/$libraryId/$version/docs/$'
411+
}
412+
params={{
413+
libraryId,
414+
version: params.version || 'latest',
415+
_splat: child.to,
416+
}}
417417
onClick={() => {
418418
detailsRef.current.removeAttribute('open')
419419
}}

0 commit comments

Comments
 (0)