Skip to content

Commit 52098a3

Browse files
committed
fix broken static header from carousel
1 parent 61fb1c4 commit 52098a3

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

components/nav/static.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
import { Container, Nav, Navbar } from 'react-bootstrap'
22
import styles from '../header.module.css'
33
import { BackOrBrand, NavPrice, SearchItem } from './common'
4+
import { CarouselProvider } from './carousel'
45

56
export default function StaticHeader () {
67
return (
7-
<Container as='header' className='px-sm-0'>
8-
<Navbar>
9-
<Nav
10-
className={styles.navbarNav}
11-
>
12-
<BackOrBrand />
13-
<SearchItem />
14-
<NavPrice className='justify-content-end' />
15-
</Nav>
16-
</Navbar>
17-
</Container>
8+
<CarouselProvider>
9+
<Container as='header' className='px-sm-0'>
10+
<Navbar>
11+
<Nav
12+
className={styles.navbarNav}
13+
>
14+
<BackOrBrand />
15+
<SearchItem />
16+
<NavPrice className='justify-content-end' />
17+
</Nav>
18+
</Navbar>
19+
</Container>
20+
</CarouselProvider>
1821
)
1922
}

0 commit comments

Comments
 (0)