small fixes

This commit is contained in:
2025-12-05 12:34:32 -03:00
parent c3c319d8b6
commit c8c12bdde4
4 changed files with 4 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
import type { Route } from './+types/orders'
import type { Route } from './+types/history'
import { MeiliSearchFilterBuilder } from 'meilisearch-helper'
import { Await, Link } from 'react-router'

View File

@@ -1,4 +1,4 @@
import type { Route } from './+types'
import type { Route } from './+types/index'
import Fuse from 'fuse.js'
import {

View File

@@ -22,7 +22,7 @@ export async function loader({ params, request, context }: Route.LoaderArgs) {
if (r.ok) {
session.flash('success', 'Seu email foi verificado.')
} else {
session.flash('info', 'O email já está verificado.')
session.flash('info', 'O email já está verificado anteriormente.')
}
return redirect('/settings/emails', {

View File

@@ -82,14 +82,9 @@ export default function Route({}: Route.ComponentProps) {
useEffect(() => {
if (fetcher.data?.ok) {
toast.success('A senha foi alterada')
toast.success('Sua senha foi alterada.')
return reset()
}
switch (fetcher.data?.error?.type) {
case 'UserConflictError':
toast.error('O colaborador já foi vinculado anteriormente')
}
}, [fetcher.data, reset])
return (