Skip to content

Commit f19cf3c

Browse files
committed
update
1 parent 70aaddc commit f19cf3c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

apps/coong/src/routes/(main-layout)/auth/(public)/verify-email/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ before:inset-0 before:bg-[linear-gradient(to_bottom,#ffffff_0px,#ffffff_30%,rgba
2020
`
2121

2222
const emailStyle = `:uno:
23+
mt-1rem
2324
text-2xl font-bold var-aurora-color-1=#00c2ff var-aurora-color-2=#33ff8c var-aurora-color-3=#ffc640 var-aurora-color-4=#e54cff
2425
`
2526

@@ -131,11 +132,10 @@ export default function VerifyEmail() {
131132
<h1 class={titleStyle({loading: loading()})}>Verified your email</h1>
132133
<Show
133134
when={user()}
134-
fallback={<span class="i-tabler-loader-2 animate-spin text-2xl text-gray-400 block w-2rem h-2rem" />}
135+
fallback={<span class="i-tabler-loader-2 animate-spin text-2xl text-gray-400 block w-2rem h-2rem mt-1rem" />}
135136
>
136137
<SAuroraText class={emailStyle}>{user()?.email}</SAuroraText>
137138
</Show>
138-
<span class="text-sm text-gray-500">{code}</span>
139139
<Show when={user()}>
140140
<span class="text-sm text-gray-500">
141141
<Show when={code} fallback={'Go to the '}>

apps/coong/src/store/auth/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ export const useUserQuery = withHandyQuery(userQuery)
4646
export function AuthProvider(props: AuthProviderProps) {
4747
const userQuery = useUserQuery({emptyValue: null})
4848
const signInSubmission = useSubmission(signInAction)
49-
const _signInAction = useAction(signInAction)
49+
const signInActionSubmit = useAction(signInAction)
5050
const signOutSubmission = useSubmission(signOutAction)
51-
const _signOutAction = useAction(signOutAction)
52-
const exchangeCodeForSection = useAction(exchangeCodeForSectionAction)
51+
const signOutActionSubmit = useAction(signOutAction)
52+
const exchangeCodeForSectionSubmit = useAction(exchangeCodeForSectionAction)
5353
const exchangeCodeForSectionSubmission = useSubmission(exchangeCodeForSectionAction)
5454
const changePassword = useAction(changePasswordAction)
5555
const changePasswordSubmission = useSubmission(changePasswordAction)
@@ -63,17 +63,17 @@ export function AuthProvider(props: AuthProviderProps) {
6363
const exchangeCodeForSectionError = createMemo(() => exchangeCodeForSectionSubmission.error)
6464

6565
const signInWithPassword = async (email: string, password: string) => {
66-
await _signInAction({email, password})
66+
await signInActionSubmit({email, password})
6767
await userQuery.refetch()
6868
}
6969

7070
const signOut = async () => {
71-
await _signOutAction()
71+
await signOutActionSubmit()
7272
await userQuery.refetch()
7373
}
7474

7575
const _exchangeCodeForSection = async (code: string) => {
76-
const data = await exchangeCodeForSectionAction(code)
76+
const data = await exchangeCodeForSectionSubmit(code)
7777

7878
await userQuery.refetch()
7979

0 commit comments

Comments
 (0)