diff --git a/components/Alert.tsx b/components/Alert.tsx index a253178..6663c03 100644 --- a/components/Alert.tsx +++ b/components/Alert.tsx @@ -8,26 +8,27 @@ interface AlertProps { function Alert(props: AlertProps): JSX.Element { const { t } = useTranslation(['index', 'errors']); - let color = 'red'; + let spanStyle = 'bg-red-100 border border-red-400 text-red-700'; + let svgStyle = 'text-red-500'; let icon; switch (props.type) { case 'error': - color = 'red' // icon = () => // break; case 'warning': - color = 'yellow' + spanStyle = 'bg-yellow-100 border border-yellow-400 text-yellow-700'; + svgStyle = 'text-yellow-500'; break; } return ( -