fix: run linter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user