1
0
Fork 0

fix: Linter warnings

This commit is contained in:
Joost De Cock 2023-07-14 10:54:20 +02:00
parent 0a8dd5f111
commit 99d2fc51aa
3 changed files with 4 additions and 4 deletions

View file

@ -163,8 +163,8 @@ export const useNavigation = ({ ignoreControl = false }, extra = []) => {
const { locale } = useRouter()
// We need translation
const { t } = useTranslation(ns)
// We need the account if we take control into account
const { account } = ignoreControl ? useAccount() : { account: false }
// We need the account if we want to take control into account
const { account } = useAccount()
const siteNav = {
...pbn[locale],

View file

@ -29,7 +29,7 @@ export const TimeAgo = ({ date, t }) => {
const PersonList = ({ list }) => (
<ul>
{list.map((id, i) => (
{list.map((id) => (
<li key={id}>
{allAuthors[id] ? (
<PageLink href={`/users/${allAuthors[id].id}`} txt={allAuthors[id].name} />

View file

@ -23,7 +23,7 @@ const getRoot = {
/*
* This is a recursive function, so it needs to be lean
*/
const RenderTree = ({ tree, recurse, depth = 1, level = 0, lead = [] }) => (
const RenderTree = ({ tree, recurse, depth = 1, level = 0 }) => (
<ul className="w-full list">
{Object.keys(tree)
.filter((key) => key.length > 1)