forked from crowetic/commerce
Update styling import
This commit is contained in:
parent
caaf5ac0a0
commit
0c3bd0b1a0
@ -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,
|
@ -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)}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user