fix: run linter

This commit is contained in:
2025-11-19 16:08:05 -07:00
parent 52ed3aff4f
commit 0010334580
22 changed files with 61 additions and 98 deletions

View File

@@ -1,11 +1,11 @@
'use client'
import { useShallow } from "zustand/shallow"
import { useUserStore } from "../providers/UsersProvider"
import useAsyncEffect from "use-async-effect"
import styled from "styled-components"
import { useRef, useState } from "react"
import { useCurrentAuthenticatedUserStore } from "../providers"
import { Mutex } from "async-mutex"
import { useRef, useState } from "react"
import styled from "styled-components"
import useAsyncEffect from "use-async-effect"
import { useShallow } from "zustand/shallow"
import { useCurrentAuthenticatedUserStore } from "../providers"
import { useUserStore } from "../providers/UsersProvider"
type UserTableProps = {
page: number
@@ -86,13 +86,13 @@ export const UserTable = ({page}: UserTableProps) => {
<UserTableItem>{u.Id}</UserTableItem>
<UserTableItem>{u.Name}</UserTableItem>
<UserTableItem>{u.JobPosition}</UserTableItem>
<UserTableItem><input type="checkbox" onChange={async (e) => {
<UserTableItem><input type="checkbox" onChange={async () => {
if(u.Active)
await userStore.deactivateUser(u.Id)
else
await userStore.activateUser(u.Id)
}} checked={u.Active}/></UserTableItem>
<UserTableItem><input type="checkbox" onChange={async (e) => {
<UserTableItem><input type="checkbox" onChange={async () => {
if(u.Admin)
await userStore.demoteUser(u.Id)
else