diff --git a/README.md b/README.md
index cf91b2775..758ff9acc 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ This project is currently under development.
- Responsive
- UI Components
- Theming
-- Standarized Data Hooks
+- Standardized Data Hooks
- Integrations - Integrate seamlessly with the most common ecommerce platforms.
- Dark Mode Support
@@ -66,6 +66,15 @@ After Email confirmation, Checkout should be manually enabled through BigCommerc
BigCommerce team has been notified and they plan to add more detailed about this subject.
+
+I have issues with BigCommerce data hooks
+
+Report issue with Data Hooks here: https://github.com/bigcommerce/storefront-data-hooks
+
+
+
+
+
## Contribute
Our commitment to Open Source can be found [here](https://vercel.com/oss).
diff --git a/components/common/HTMLContent/HTMLContent.module.css b/components/common/HTMLContent/HTMLContent.module.css
deleted file mode 100644
index 0e6d8f917..000000000
--- a/components/common/HTMLContent/HTMLContent.module.css
+++ /dev/null
@@ -1,26 +0,0 @@
-.root {
- @apply text-lg leading-7 font-medium max-w-6xl mx-auto;
-}
-
-.root p {
- @apply text-justify;
-}
-
-.root h1 {
- @apply text-5xl mb-12;
-}
-
-.root h2 {
- @apply text-3xl mt-12 mb-4 leading-snug;
-}
-
-.root h3 {
- @apply text-2xl mt-8 mb-4 leading-snug;
-}
-
-.root p,
-.root ul,
-.root ol,
-.root blockquote {
- @apply mb-6;
-}
diff --git a/components/common/HTMLContent/HTMLContent.tsx b/components/common/HTMLContent/HTMLContent.tsx
deleted file mode 100644
index d041ff369..000000000
--- a/components/common/HTMLContent/HTMLContent.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import cn from 'classnames'
-import s from './HTMLContent.module.css'
-
-type Props = {
- className?: 'string'
- html: string
-}
-
-export default function HTMLContent({ className, html }: Props) {
- return (
-
- )
-}
diff --git a/components/common/HTMLContent/index.ts b/components/common/HTMLContent/index.ts
deleted file mode 100644
index 0a1dcb276..000000000
--- a/components/common/HTMLContent/index.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from './HTMLContent'
diff --git a/components/common/I18nWidget/I18nWidget.module.css b/components/common/I18nWidget/I18nWidget.module.css
index 6e8883521..07a1aeba7 100644
--- a/components/common/I18nWidget/I18nWidget.module.css
+++ b/components/common/I18nWidget/I18nWidget.module.css
@@ -6,6 +6,10 @@
@apply h-10 px-2 rounded-md border border-accents-2 flex items-center justify-center;
}
+.button:hover {
+ @apply border-accents-4 shadow-sm;
+}
+
.button:focus {
@apply outline-none;
}
@@ -18,6 +22,12 @@
}
}
+.closeButton {
+ @screen md {
+ @apply hidden;
+ }
+}
+
.item {
@apply flex cursor-pointer px-6 py-3 flex transition ease-in-out duration-150 text-primary leading-6 font-medium items-center;
text-transform: capitalize;
@@ -26,3 +36,7 @@
.item:hover {
@apply bg-accents-1;
}
+
+.icon {
+ transform: rotate(180deg);
+}
diff --git a/components/common/I18nWidget/I18nWidget.tsx b/components/common/I18nWidget/I18nWidget.tsx
index 428f7bc1f..92b40322d 100644
--- a/components/common/I18nWidget/I18nWidget.tsx
+++ b/components/common/I18nWidget/I18nWidget.tsx
@@ -1,11 +1,10 @@
-import { FC } from 'react'
import cn from 'classnames'
-import { useRouter } from 'next/router'
import Link from 'next/link'
-import { Menu } from '@headlessui/react'
-import { DoubleChevron } from '@components/icons'
+import { useRef, FC, useState } from 'react'
+import { useRouter } from 'next/router'
import s from './I18nWidget.module.css'
-
+import { Cross, ChevronUp } from '@components/icons'
+import ClickOutside from '@lib/click-outside'
interface LOCALE_DATA {
name: string
img: {
@@ -32,50 +31,69 @@ const LOCALES_MAP: Record = {
}
const I18nWidget: FC = () => {
+ const [display, setDisplay] = useState(false)
const {
locale,
locales,
defaultLocale = 'en-US',
asPath: currentPath,
} = useRouter()
- const options = locales?.filter((val) => val !== locale)
+ const options = locales?.filter((val) => val !== locale)
const currentLocale = locale || defaultLocale
+ const ref = useRef(null)
return (
-
+ setDisplay(false)} ref={ref}>
+
+
)
}
diff --git a/components/common/Layout/Layout.tsx b/components/common/Layout/Layout.tsx
index f76a75561..158f63068 100644
--- a/components/common/Layout/Layout.tsx
+++ b/components/common/Layout/Layout.tsx
@@ -5,7 +5,6 @@ import { useRouter } from 'next/router'
import React, { FC } from 'react'
import { useUI } from '@components/ui/context'
import { Navbar, Footer } from '@components/common'
-import { usePreventScroll } from '@react-aria/overlays'
import { useAcceptCookies } from '@lib/hooks/useAcceptCookies'
import { CommerceProvider } from '@bigcommerce/storefront-data-hooks'
import { Sidebar, Button, Modal, LoadingDots } from '@components/ui'
@@ -56,10 +55,6 @@ const Layout: FC = ({ children, pageProps }) => {
const { acceptedCookies, onAcceptCookies } = useAcceptCookies()
const { locale = 'en-US' } = useRouter()
- usePreventScroll({
- isDisabled: !(displaySidebar || displayModal),
- })
-
return (
diff --git a/components/common/Navbar/Navbar.tsx b/components/common/Navbar/Navbar.tsx
index 2feffe874..24a2b5757 100644
--- a/components/common/Navbar/Navbar.tsx
+++ b/components/common/Navbar/Navbar.tsx
@@ -34,7 +34,7 @@ const Navbar: FC = () => {