Skip to content

Commit 8a05d89

Browse files
committed
fix(web): format check
1 parent c08594e commit 8a05d89

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

web/src/features/settings/profile/profile-form.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { useEffect, useState } from 'react'
22
import { z } from 'zod'
33
import { useForm } from 'react-hook-form'
44
import { zodResolver } from '@hookform/resolvers/zod'
5+
import { updateProfile } from '@/services'
56
import { toast } from 'sonner'
67
import { useAuthStore } from '@/stores/auth-store'
7-
import { updateProfile } from '@/services'
88
import { Button } from '@/components/ui/button'
99
import {
1010
Form,
@@ -80,10 +80,7 @@ export function ProfileForm() {
8080

8181
return (
8282
<Form {...form}>
83-
<form
84-
onSubmit={form.handleSubmit(onSubmit)}
85-
className='space-y-8'
86-
>
83+
<form onSubmit={form.handleSubmit(onSubmit)} className='space-y-8'>
8784
<FormField
8885
control={form.control}
8986
name='username'
@@ -136,7 +133,11 @@ export function ProfileForm() {
136133
)}
137134
/>
138135
<Button type='submit' disabled={isLoadingProfile || isPending}>
139-
{isPending ? '保存中...' : isLoadingProfile ? '加载中...' : '更新个人资料'}
136+
{isPending
137+
? '保存中...'
138+
: isLoadingProfile
139+
? '加载中...'
140+
: '更新个人资料'}
140141
</Button>
141142
</form>
142143
</Form>

web/src/features/system/departments/components/departments-action-dialog.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,7 @@ export function DepartmentsActionDialog({
105105
</SelectTrigger>
106106
</FormControl>
107107
<SelectContent>
108-
<SelectItem value='__none__'>
109-
无(顶级部门)
110-
</SelectItem>
108+
<SelectItem value='__none__'>无(顶级部门)</SelectItem>
111109
{parentOptions.map((opt) => (
112110
<SelectItem key={opt.id} value={opt.id}>
113111
{' '.repeat(opt.level)}

0 commit comments

Comments
 (0)