1
0
Fork 0

chore(org): Linter warnings

This commit is contained in:
joostdecock 2023-01-27 21:19:13 +01:00
parent 84dbd9353a
commit 31e92076b2
6 changed files with 4 additions and 8 deletions

View file

@ -1,5 +1,4 @@
import { log } from '../utils/log.mjs'
import { hash } from '../utils/crypto.mjs'
export function ConfirmationModel(tools) {
this.config = tools.config

View file

@ -22,7 +22,7 @@ const btnClasses = {
const spanClasses =
'p-4 w-8 h-8 shrink-0 rounded-full text-center p-0 py-2 bg-secondary text-secondary-content'
export const Choice = ({ val, update, t, current, children, bool = false }) => {
export const Choice = ({ val, update, current, children, bool = false }) => {
const active = val === current
return (

View file

@ -13,15 +13,12 @@ const UsernameSettings = ({ app, title = false, welcome = false }) => {
const { t } = useTranslation(namespaces)
const [username, setUsername] = useState(app.account.username)
const [available, setAvailable] = useState(true)
const [checking, setChecking] = useState(false)
const update = async (evt) => {
evt.preventDefault()
if (evt.target.value !== username) {
setUsername(evt.target.value)
setChecking(true)
const free = await backend.isUsernameAvailable(evt.target.value)
setChecking(false)
setAvailable(free)
}
}

View file

@ -1,4 +1,4 @@
const WelcomeWrapper = ({ theme, children }) => (
const WelcomeWrapper = ({ children }) => (
<section className="m-0 p-0 w-full">
<div className="flex flex-col items-center justify-start h-screen mt-4 lg:mt-32 max-w-lg m-auto">
<div className="w-full text-left">{children}</div>

View file

@ -35,7 +35,7 @@ export const SignupLinkExpired = () => {
)
}
const Checkbox = ({ value, name, setter, label, children = null }) => (
const Checkbox = ({ value, setter, label, children = null }) => (
<div
className={`form-control p-4 hover:cursor-pointer rounded border-l-8 my-2
${value ? 'border-success bg-success' : 'border-error bg-error'}

View file

@ -1,6 +1,6 @@
import Spinner from 'shared/components/icons/spinner.js'
const Loader = ({}) => (
const Loader = () => (
<div
className={`
fixed top-0 left-0 right-0 w-screen h-screen