1
0
Fork 0

everything passes lint

This commit is contained in:
Enoch Riese 2022-12-03 11:25:02 -06:00
parent e28ca4ea86
commit 477a4d93f5
24 changed files with 304 additions and 303 deletions

View file

@ -1,12 +1,8 @@
import { useState, useEffect } from 'react'
import FreeSewingIcon from 'shared/components/icons/freesewing.js'
import Link from 'next/link'
import ThemePicker from 'shared/components/theme-picker.js'
import CloseIcon from 'shared/components/icons/close.js'
import MenuIcon from 'shared/components/icons/menu.js'
import SearchIcon from 'shared/components/icons/search.js'
import SwipeRightIcon from 'shared/components/icons/swiperight.js'
import SwipeLeftIcon from 'shared/components/icons/swipeleft.js'
import Ribbon from 'shared/components/ribbon.js'
import { WordMark } from 'shared/components/wordmark.js'

View file

@ -1,6 +1,6 @@
import Popout from 'shared/components/popout.js'
const HelpUs = ({ mdx = false, slug = '/' }) => (
const HelpUs = ({ slug = '/' }) => (
<details className="mt-4">
<summary>Click here to learn how you can help us improve this page</summary>
<Popout tip className="max-w-prose">

View file

@ -18,7 +18,7 @@ const DefaultLayout = ({ app, title = false, crumbs = false, children = [] }) =>
app={app}
slug={slug}
before={[
<div className="flex flex-row items-center justify-between border-b mb-4">
<div className="flex flex-row items-center justify-between border-b mb-4" key="home-key">
<Link href="/">
<a>
<HomeIcon />

View file

@ -204,9 +204,7 @@ const Navigation = ({ app, active, className='' }) => {
*/
export const Icons = ({
app,
active,
ulClasses = '',
liClasses = '',
linkClasses = `grow text-lg lg:text-xl py-1 text-base-content sm:text-base-content
hover:text-secondary sm:hover:text-secondary hover:cursor-pointer
flex flex-col items-center`,
@ -242,7 +240,6 @@ const PrimaryMenu = ({ app, active, before=[], after=[] }) => (
export const MainSections = ({ app, active }) => {
if (!app.navigation) return null
const output = []
let last
for (const page of order(app.navigation)) {
const act = isActive(page.__slug, active)
const txt = (

View file

@ -27,7 +27,7 @@ const PageWrapper = ({
const router = useRouter()
const slug = router.asPath.slice(1)
useEffect(() => app.setSlug(slug), [slug])
useEffect(() => app.setSlug(slug), [slug, app])
// Trigger search with Ctrl+k
useHotkeys('ctrl+k', (evt) => {