fix: Linter warnings
This commit is contained in:
parent
0a8dd5f111
commit
99d2fc51aa
3 changed files with 4 additions and 4 deletions
|
@ -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],
|
||||
|
|
|
@ -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} />
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue