Update styling import

This commit is contained in:
Martin Bavio 2020-11-04 00:02:01 -03:00
parent caaf5ac0a0
commit 0c3bd0b1a0
4 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import cn from 'classnames'
import styles from './FeatureBar.module.css'
import s from './FeatureBar.module.css'
interface FeatureBarProps {
className?: string
@ -17,7 +17,7 @@ const FeatureBar: React.FC<FeatureBarProps> = ({
hide,
}) => {
const rootClassName = cn(
styles.root,
s.root,
{
transform: true,
'translate-y-0 opacity-100': !hide,

View File

@ -44,8 +44,9 @@ const Layout: FC<Props> = ({ children, pageProps }) => {
const scrolled = scrollTop > offset
setHasScrolled(scrolled)
}, 1)
, [])
}, 1),
[]
)
useEffect(() => {
document.addEventListener('scroll', handleScroll)
@ -54,8 +55,6 @@ const Layout: FC<Props> = ({ children, pageProps }) => {
}
}, [handleScroll])
console.log(acceptedCookies)
return (
<CommerceProvider locale={locale}>
<div className={cn(s.root)}>