Skip to content

Commit

Permalink
fix: render search bar component regardless of whether any active plu…
Browse files Browse the repository at this point in the history
…gins are found
  • Loading branch information
jeangovil committed Jun 13, 2023
1 parent e10d9ab commit 339d5bc
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import ErrorBoundary from '@docusaurus/ErrorBoundary'
import { useActivePlugin } from '@docusaurus/plugin-content-docs/lib/client/index.js'
import React from 'react'
import { SearchBar } from './SearchBar'

const SearchBarWrapper: React.FC = () => {
const activePlugin = useActivePlugin()
if (!activePlugin) return <></>

return typeof window === 'undefined' ? (
<></>
) : (
Expand Down

0 comments on commit 339d5bc

Please sign in to comment.