mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
Update styling import
This commit is contained in:
parent
caaf5ac0a0
commit
0c3bd0b1a0
@ -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,
|
@ -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)}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user