chore: Fixed linter warnings
This commit is contained in:
parent
8a8270e329
commit
f728052ad4
4 changed files with 3 additions and 37 deletions
|
@ -1,7 +1,4 @@
|
|||
import Logo from 'shared/components/logos/freesewing.js'
|
||||
import OsiLogo from 'shared/components/logos/osi.js'
|
||||
import CreativeCommonsLogo from 'shared/components/logos/cc.js'
|
||||
import CcByLogo from 'shared/components/logos/cc-by.js'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
import Ribbon from 'shared/components/ribbon.js'
|
||||
import Link from 'next/link'
|
||||
|
@ -19,36 +16,6 @@ const link = 'text-secondary font-bold hover:pointer hover:underline px-1'
|
|||
const accent = 'text-accent font-bold text-lg px-1 block sm:inline'
|
||||
const freesewing = 'px-1 text-lg font-bold block sm:inline'
|
||||
|
||||
// Keep these translations in the component because they're only used here
|
||||
const translations = {
|
||||
cc: (
|
||||
<span>
|
||||
Content on FreeSewing.org is available under{' '}
|
||||
<a className={link} href="https://creativecommons.org/licenses/by/4.0/">
|
||||
a Creative Commons license
|
||||
</a>
|
||||
</span>
|
||||
),
|
||||
mit: (
|
||||
<span>
|
||||
The FreeSewing source code is{' '}
|
||||
<a href="https://github.com/freesewing/freesewing" className={link}>
|
||||
available on Github
|
||||
</a>{' '}
|
||||
under{' '}
|
||||
<a href="https://opensource.org/licenses/MIT" className={link}>
|
||||
the MIT license
|
||||
</a>
|
||||
</span>
|
||||
),
|
||||
sponsors: (
|
||||
<>
|
||||
<span className={freesewing}>FreeSewing</span> is sponsored by these{' '}
|
||||
<span className={accent}>awesome companies</span>
|
||||
</>
|
||||
),
|
||||
}
|
||||
|
||||
const icon = { className: 'w-8 lg:w-12 h-8 lg:h-12' }
|
||||
const social = {
|
||||
Discord: {
|
||||
|
|
|
@ -2,7 +2,6 @@ import { useState, useEffect } from 'react'
|
|||
import Link from 'next/link'
|
||||
import ThemePicker from 'shared/components/theme-picker.js'
|
||||
import LocalePicker from 'shared/components/locale-picker.js'
|
||||
import DesignPicker from 'site/components/design-picker.js'
|
||||
import CloseIcon from 'shared/components/icons/close.js'
|
||||
import MenuIcon from 'shared/components/icons/menu.js'
|
||||
import HelpIcon from 'shared/components/icons/help.js'
|
||||
|
|
|
@ -21,7 +21,7 @@ const translations = {
|
|||
tips: {
|
||||
en: (
|
||||
<Popout tip compact>
|
||||
Edit the files in the <strong>design</strong> folder, and we'll auto-update your design
|
||||
Edit the files in the <strong>design</strong> folder, and we'll auto-update your design
|
||||
</Popout>
|
||||
),
|
||||
nl: (
|
||||
|
@ -33,7 +33,7 @@ const translations = {
|
|||
},
|
||||
}
|
||||
|
||||
const HomePage = (props) => {
|
||||
const HomePage = () => {
|
||||
const app = useApp()
|
||||
const router = useRouter()
|
||||
const { t } = useTranslation(['common', 'patrons', 'locales', 'themes'])
|
||||
|
|
|
@ -59,7 +59,7 @@ const copyThese = [
|
|||
},
|
||||
]
|
||||
for (const cp of copyThese) {
|
||||
fs.copyFile(path.join(repo.path, ...cp.from), path.join(repo.path, ...cp.to), (err) => null)
|
||||
fs.copyFile(path.join(repo.path, ...cp.from), path.join(repo.path, ...cp.to), () => null)
|
||||
}
|
||||
|
||||
// Step 1: Generate main README file from template
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue