feat: 🐛

This commit is contained in:
Evandro committed 2024-11-28 13:00:26 -03:00
1 parent 1dd2dffed8
commit b3eceeb78d
7 files changed
+19 -18

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ export function DeleteButton({ produtoId, produtoNome, listaId }: DeleteButtonPr
<AlertDialogHeader>
<AlertDialogTitle>Confirmar exclusão</AlertDialogTitle>
<AlertDialogDescription>
Tem certeza que deseja excluir o produto "{produtoNome}"?
Tem certeza que deseja excluir o produto &quot;{produtoNome}&quot;?
Esta ação não pode ser desfeita.
</AlertDialogDescription>
</AlertDialogHeader>
+1 -1
View File
@@ -30,7 +30,7 @@ export function IdInput() {
} else {
setError('Erro ao acessar/criar lista')
}
} catch (error) {
} catch {
setError('Erro ao processar solicitação')
} finally {
setLoading(false)
+1 -1
View File
@@ -59,7 +59,7 @@ export function ListHeader({ listaId }: ListHeaderProps) {
}
}
}
} catch (error) {
} catch {
setError('Erro ao processar solicitação')
} finally {
setLoading(false)
+1 -3
View File
@@ -1,10 +1,8 @@
'use client'
import { motion } from 'framer-motion'
import { useTheme } from 'next-themes'
export function PageTitle() {
const { theme } = useTheme()
return (
<motion.div
+1 -1
View File
@@ -14,7 +14,7 @@ interface ListaPageProps {
}
export default async function ListaPage({ params }: ListaPageProps) {
const { success, exists } = await verificarLista(params.id);
const { success } = await verificarLista(params.id);
if (!success) {
redirect('/');