chore(shared): Linter issues
This commit is contained in:
parent
5969b02a17
commit
e29e6278e4
2 changed files with 2 additions and 17 deletions
|
@ -23,7 +23,6 @@ import { HowDoesItWorkAnimation } from 'shared/components/animations/how-does-it
|
||||||
import { SignUp, ns as susiNs } from 'shared/components/susi/sign-up.mjs'
|
import { SignUp, ns as susiNs } from 'shared/components/susi/sign-up.mjs'
|
||||||
import { PleaseSubscribe, ns as subNs } from 'shared/components/patrons/please-subscribe.mjs'
|
import { PleaseSubscribe, ns as subNs } from 'shared/components/patrons/please-subscribe.mjs'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { Popout } from 'shared/components/popout/index.mjs'
|
|
||||||
|
|
||||||
const ns = nsMerge(pageNs, subNs, susiNs, 'homepage')
|
const ns = nsMerge(pageNs, subNs, susiNs, 'homepage')
|
||||||
|
|
||||||
|
|
|
@ -1,23 +1,18 @@
|
||||||
// Dependencies
|
// Dependencies
|
||||||
import { useState, useEffect, useContext, useCallback } from 'react'
|
import { useState, useEffect, useContext } from 'react'
|
||||||
import { useTranslation } from 'next-i18next'
|
import { useTranslation } from 'next-i18next'
|
||||||
import orderBy from 'lodash.orderby'
|
|
||||||
import { capitalize, shortDate, cloudflareImageUrl, horFlexClasses } from 'shared/utils.mjs'
|
import { capitalize, shortDate, cloudflareImageUrl, horFlexClasses } from 'shared/utils.mjs'
|
||||||
import { freeSewingConfig as conf, controlLevels } from 'shared/config/freesewing.config.mjs'
|
import { freeSewingConfig as conf, controlLevels } from 'shared/config/freesewing.config.mjs'
|
||||||
// Hooks
|
// Hooks
|
||||||
import { useDropzone } from 'react-dropzone'
|
|
||||||
import { useAccount } from 'shared/hooks/use-account.mjs'
|
import { useAccount } from 'shared/hooks/use-account.mjs'
|
||||||
import { useBackend } from 'shared/hooks/use-backend.mjs'
|
import { useBackend } from 'shared/hooks/use-backend.mjs'
|
||||||
import { useToast } from 'shared/hooks/use-toast.mjs'
|
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import { useLoadingStatus } from 'shared/hooks/use-loading-status.mjs'
|
import { useLoadingStatus } from 'shared/hooks/use-loading-status.mjs'
|
||||||
// Context
|
// Context
|
||||||
import { LoadingContext } from 'shared/context/loading-context.mjs'
|
|
||||||
import { ModalContext } from 'shared/context/modal-context.mjs'
|
import { ModalContext } from 'shared/context/modal-context.mjs'
|
||||||
// Components
|
// Components
|
||||||
import { PageLink, Link, AnchorLink } from 'shared/components/link.mjs'
|
import { PageLink, Link, AnchorLink } from 'shared/components/link.mjs'
|
||||||
import { Collapse, MimicCollapseLink } from 'shared/components/collapse.mjs'
|
import { BackToAccountButton } from './shared.mjs'
|
||||||
import { BackToAccountButton, Choice } from './shared.mjs'
|
|
||||||
import {
|
import {
|
||||||
StringInput,
|
StringInput,
|
||||||
MarkdownInput,
|
MarkdownInput,
|
||||||
|
@ -28,9 +23,6 @@ import {
|
||||||
OkIcon,
|
OkIcon,
|
||||||
NoIcon,
|
NoIcon,
|
||||||
TrashIcon,
|
TrashIcon,
|
||||||
SettingsIcon,
|
|
||||||
DownloadIcon,
|
|
||||||
PageIcon,
|
|
||||||
PlusIcon,
|
PlusIcon,
|
||||||
CameraIcon,
|
CameraIcon,
|
||||||
EditIcon,
|
EditIcon,
|
||||||
|
@ -42,9 +34,7 @@ import {
|
||||||
import { DisplayRow } from './shared.mjs'
|
import { DisplayRow } from './shared.mjs'
|
||||||
import { ModalWrapper } from 'shared/components/wrappers/modal.mjs'
|
import { ModalWrapper } from 'shared/components/wrappers/modal.mjs'
|
||||||
import Markdown from 'react-markdown'
|
import Markdown from 'react-markdown'
|
||||||
import { Tab } from './bio.mjs'
|
|
||||||
import Timeago from 'react-timeago'
|
import Timeago from 'react-timeago'
|
||||||
import { Spinner } from 'shared/components/spinner.mjs'
|
|
||||||
import { TableWrapper } from 'shared/components/wrappers/table.mjs'
|
import { TableWrapper } from 'shared/components/wrappers/table.mjs'
|
||||||
import { DynamicOrgDocs } from 'shared/components/dynamic-docs/org.mjs'
|
import { DynamicOrgDocs } from 'shared/components/dynamic-docs/org.mjs'
|
||||||
|
|
||||||
|
@ -383,9 +373,6 @@ export const PatternCard = ({
|
||||||
useA = false,
|
useA = false,
|
||||||
size = 'md',
|
size = 'md',
|
||||||
}) => {
|
}) => {
|
||||||
// Hooks
|
|
||||||
const { t } = useTranslation(['sets'])
|
|
||||||
|
|
||||||
const sizes = {
|
const sizes = {
|
||||||
lg: 96,
|
lg: 96,
|
||||||
md: 52,
|
md: 52,
|
||||||
|
@ -441,7 +428,6 @@ export const Patterns = () => {
|
||||||
const { locale } = router
|
const { locale } = router
|
||||||
|
|
||||||
// Hooks
|
// Hooks
|
||||||
const { account } = useAccount()
|
|
||||||
const backend = useBackend()
|
const backend = useBackend()
|
||||||
const { t } = useTranslation(ns)
|
const { t } = useTranslation(ns)
|
||||||
const { setLoadingStatus, LoadingStatus, LoadingProgress } = useLoadingStatus()
|
const { setLoadingStatus, LoadingStatus, LoadingProgress } = useLoadingStatus()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue