chore(org): Linter warnings
This commit is contained in:
parent
84dbd9353a
commit
31e92076b2
6 changed files with 4 additions and 8 deletions
|
@ -1,5 +1,4 @@
|
|||
import { log } from '../utils/log.mjs'
|
||||
import { hash } from '../utils/crypto.mjs'
|
||||
|
||||
export function ConfirmationModel(tools) {
|
||||
this.config = tools.config
|
||||
|
|
|
@ -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 (
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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'}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue