fix(fs.dev): Some linter warnings
This commit is contained in:
parent
eeacb8669d
commit
d6c37e7a3e
3 changed files with 5 additions and 5 deletions
|
@ -108,7 +108,7 @@ const Footer = ({ app }) => (
|
||||||
</p>
|
</p>
|
||||||
<div className="p-4 pb-16 flex flex-row bg-neutral -mt-2 z-0 gap-1 lg:gap-2 flex-wrap justify-around text-neutral-content lg:px-24">
|
<div className="p-4 pb-16 flex flex-row bg-neutral -mt-2 z-0 gap-1 lg:gap-2 flex-wrap justify-around text-neutral-content lg:px-24">
|
||||||
{contributors.map(person => (
|
{contributors.map(person => (
|
||||||
<a title={person.name} href={person.profile} className="m-auto" key={person.name}>
|
<a title={person.name} href={person.profile} className="m-auto" key={person.profile+person.name}>
|
||||||
<img
|
<img
|
||||||
src={person.avatar_url} alt={`Avatar of ${person.name}`}
|
src={person.avatar_url} alt={`Avatar of ${person.name}`}
|
||||||
className="w-12 h-12 lg:w-16 lg:h-16 rounded-full border-2 border-secondary hover:border-accent"
|
className="w-12 h-12 lg:w-16 lg:h-16 rounded-full border-2 border-secondary hover:border-accent"
|
||||||
|
@ -128,7 +128,7 @@ const Footer = ({ app }) => (
|
||||||
title={person.name}
|
title={person.name}
|
||||||
href={`https://freesewing.org/users/${person.username}`}
|
href={`https://freesewing.org/users/${person.username}`}
|
||||||
className="m-auto"
|
className="m-auto"
|
||||||
key={person.name}
|
key={person.username}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={person.img}
|
src={person.img}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const OsiLogo = ({ color='currentColor' }) => (
|
const OsiLogo = ({ color='currentColor' }) => (
|
||||||
<svg viewBox="-0.5 -0.5 33 33" xmlns="http://www.w3.org/2000/svg">
|
<svg viewBox="-0.5 -0.5 33 33" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="m16 15.993m1.9113 4.9789a5.333 5.333 0 1 0-3.8226 0l-3.5923 9.3604a15.359 15.359 0 1 1 11.007 0z" fill="none" stroke={color} stroke-width="2"/>
|
<path d="m16 15.993m1.9113 4.9789a5.333 5.333 0 1 0-3.8226 0l-3.5923 9.3604a15.359 15.359 0 1 1 11.007 0z" fill="none" stroke={color} strokeWidth="2"/>
|
||||||
</svg>
|
</svg>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@ const SubLevel = ({ nodes={}, active }) => (
|
||||||
</details>
|
</details>
|
||||||
</li>
|
</li>
|
||||||
) : (
|
) : (
|
||||||
<li className='pl-2 flex flex-row items-center'>
|
<li className='pl-2 flex flex-row items-center' key={child.__slug}>
|
||||||
<Link href={`/${child.__slug}`} title={child.__title}>
|
<Link href={`/${child.__slug}`} title={child.__title}>
|
||||||
<a className={`
|
<a className={`
|
||||||
pl-2 border-l-2
|
pl-2 border-l-2
|
||||||
|
@ -172,10 +172,10 @@ const Navigation = ({ app, active }) => {
|
||||||
if (!app.navigation) return null
|
if (!app.navigation) return null
|
||||||
const output = []
|
const output = []
|
||||||
for (const key of Object.keys(app.navigation).sort()) output.push(<TopLevel
|
for (const key of Object.keys(app.navigation).sort()) output.push(<TopLevel
|
||||||
|
key={key}
|
||||||
icon={icons[key] || <span className="text-3xl mr-2 translate-y-3 inline-block p-0 leading-3">°</span>}
|
icon={icons[key] || <span className="text-3xl mr-2 translate-y-3 inline-block p-0 leading-3">°</span>}
|
||||||
title={key}
|
title={key}
|
||||||
slug={key}
|
slug={key}
|
||||||
key={key}
|
|
||||||
hasChildren={keepClosed.indexOf(key) === -1}
|
hasChildren={keepClosed.indexOf(key) === -1}
|
||||||
nav={app.navigation}
|
nav={app.navigation}
|
||||||
current={order(app.navigation[key])}
|
current={order(app.navigation[key])}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue