-
-
-
-
-
- Come for the sewing patterns
-
- Stay for the community
-
+
+
+
+
+
+ Come for the sewing patterns
+
+ Stay for the community
+
+
-
-
-
+
+
+
-
-
-
-
- )
-}
+
+
+
+
+)
diff --git a/sites/shared/components/mdx/prev-next.mjs b/sites/shared/components/mdx/prev-next.mjs
index cf6f810a678..4cf0e741b17 100644
--- a/sites/shared/components/mdx/prev-next.mjs
+++ b/sites/shared/components/mdx/prev-next.mjs
@@ -2,6 +2,7 @@ import get from 'lodash.get'
import orderBy from 'lodash.orderby'
import Link from 'next/link'
import { LeftIcon, RightIcon } from 'shared/components/icons.mjs'
+import { Popout } from 'shared/components/popout.mjs'
// helper method to order nav entries
const order = (obj) => orderBy(obj, ['__order', '__title'], ['asc', 'asc'])
@@ -96,10 +97,15 @@ const renderNext = (node) =>
)
export const PrevNext = ({ app }) => {
- return
fixme: prevnext
return (
{renderPrevious(previous(app))}
+
+ Not yet implemented
+
+ Fix it in site/shared/components/mdx/prev-next.mjs
+
+
{renderNext(next(app))}
)
diff --git a/sites/shared/components/modal/locale-picker.mjs b/sites/shared/components/modal/locale-picker.mjs
index 0f374dd793e..960c04cc0cb 100644
--- a/sites/shared/components/modal/locale-picker.mjs
+++ b/sites/shared/components/modal/locale-picker.mjs
@@ -1,11 +1,8 @@
// Dependencies
-import { Fragment } from 'react'
import { useRouter } from 'next/router'
import { useTranslation } from 'next-i18next'
-import { Popover, Transition } from '@headlessui/react'
import Link from 'next/link'
// Components
-import { I18nIcon, DownIcon } from 'shared/components/icons.mjs'
import { ModalWrapper } from 'shared/components/wrappers/modal.mjs'
// Languages
import en from 'site/public/locales/en/locales.json'
diff --git a/sites/shared/components/modal/theme-picker.mjs b/sites/shared/components/modal/theme-picker.mjs
index a8031a41ee1..058b3f30b30 100644
--- a/sites/shared/components/modal/theme-picker.mjs
+++ b/sites/shared/components/modal/theme-picker.mjs
@@ -1,5 +1,4 @@
import themes from 'shared/themes/index.js'
-import { ThemeIcon, DownIcon } from 'shared/components/icons.mjs'
import { useTranslation } from 'next-i18next'
import { useTheme } from 'shared/hooks/use-theme.mjs'
import { ModalWrapper } from 'shared/components/wrappers/modal.mjs'
@@ -15,7 +14,7 @@ export const ModalThemePicker = ({ app, iconOnly = false, bottom = false }) => {
{t('themes:chooseYourTheme')}
{Object.keys(themes).map((theme) => (
-
+
diff --git a/sites/shared/components/navigation/aside.mjs b/sites/shared/components/navigation/aside.mjs
index ba82b10e35c..4d231711f2d 100644
--- a/sites/shared/components/navigation/aside.mjs
+++ b/sites/shared/components/navigation/aside.mjs
@@ -1,5 +1,4 @@
import { MainSections, ActiveSection, ns as navNs } from './primary.mjs'
-import Link from 'next/link'
export const ns = navNs
diff --git a/sites/shared/components/navigation/primary.mjs b/sites/shared/components/navigation/primary.mjs
index 7d81535ced7..18c050f18f1 100644
--- a/sites/shared/components/navigation/primary.mjs
+++ b/sites/shared/components/navigation/primary.mjs
@@ -1,6 +1,5 @@
import Link from 'next/link'
import orderBy from 'lodash.orderby'
-import get from 'lodash.get'
import {
CommunityIcon,
DesignIcon,
diff --git a/sites/shared/components/wrappers/auth/index.mjs b/sites/shared/components/wrappers/auth/index.mjs
index 449285b471b..7db075bafc8 100644
--- a/sites/shared/components/wrappers/auth/index.mjs
+++ b/sites/shared/components/wrappers/auth/index.mjs
@@ -1,6 +1,5 @@
import Link from 'next/link'
import { useTranslation } from 'next-i18next'
-import { Loader } from 'shared/components/loader.mjs'
import { useAccount } from 'shared/hooks/use-account.mjs'
export const ns = ['auth']
diff --git a/sites/shared/hooks/use-app.mjs b/sites/shared/hooks/use-app.mjs
index 719e2fa15fd..0ce9e49fae9 100644
--- a/sites/shared/hooks/use-app.mjs
+++ b/sites/shared/hooks/use-app.mjs
@@ -24,7 +24,7 @@ export function useApp(props = {}) {
if (!path) throw 'You MUST pass a page.path prop to the useApp hook'
- const reportError = useBugsnag(props?.bugsnag)
+ const reportError = useBugsnag(bugsnag)
const navState = useNavigation(path)
// React state
diff --git a/sites/shared/hooks/use-theme.mjs b/sites/shared/hooks/use-theme.mjs
index cff5f957106..5aaca4a7345 100644
--- a/sites/shared/hooks/use-theme.mjs
+++ b/sites/shared/hooks/use-theme.mjs
@@ -1,4 +1,3 @@
-import { useEffect } from 'react'
import createPersistedState from 'use-persisted-state'
const usePersistedTheme = createPersistedState('fs-theme')
@@ -12,21 +11,4 @@ const preferredTheme = () => {
return prefersDarkMode ? 'dark' : 'light'
}
-export const useTheme = () => {
- // (persisted) State (saved to local storage)
- const [theme, setTheme] = usePersistedTheme(preferredTheme)
-
- //useEffect(() => {
- // // set the default theme based on user prefence
- // if (theme === undefined) {
- // const prefersDarkMode =
- // typeof window !== 'undefined' && typeof window.matchMedia === 'function'
- // ? window.matchMedia(`(prefers-color-scheme: dark`).matches
- // : undefined
-
- // setTheme(prefersDarkMode ? 'dark' : 'light')
- // }
- //}, [theme, setTheme])
-
- return [theme, setTheme]
-}
+export const useTheme = () => usePersistedTheme(preferredTheme)
diff --git a/sites/shared/prebuild/navigation.mjs b/sites/shared/prebuild/navigation.mjs
index 5aa19a47386..397a6ab305d 100644
--- a/sites/shared/prebuild/navigation.mjs
+++ b/sites/shared/prebuild/navigation.mjs
@@ -8,7 +8,6 @@ const future = new Date('10-12-2026').getTime()
// We need to load the translation for blog + showcase
const loadTranslation = (locale) => {
- const file = `${folders.shared}/navigation/sections.${locale}.yaml`
let data
try {
data = loadYaml(`${folders.shared}/navigation/sections.${locale}.yaml`, false)