Skip to content

Commit

Permalink
fix: solve eslint and prettier alerts for netlify build to work
Browse files Browse the repository at this point in the history
  • Loading branch information
julia-rabello committed Oct 18, 2024
1 parent 76f2d54 commit 5b69d36
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,13 @@ import LocaleSwitcher from 'components/locale-switcher'

import styles from './styles'
import { PreviewContext } from 'utils/contexts/preview'
import { FormattedMessage, useIntl } from 'react-intl'
import { FormattedMessage } from 'react-intl'
import { HamburgerMenu, SearchInput } from '@vtexdocs/components'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const Header = () => {
const router = useRouter()
const isBranchPreview = router.isPreview
const intl = useIntl()

const { branchPreview } = useContext(PreviewContext)

Expand Down Expand Up @@ -89,9 +88,7 @@ const Header = () => {

return (
<Box ref={headerElement} sx={styles.headerContainer}>
{!isBranchPreview ? (
null
) : (
{!isBranchPreview ? null : (
<AnnouncementBar
closable={false}
type="warning"
Expand Down

0 comments on commit 5b69d36

Please sign in to comment.