4
0
forked from crowetic/commerce

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

View File

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