frontend converted to ts
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
import React from "react";
|
||||
import { useAppSelector } from "../../utils/hooks";
|
||||
const Alert = () => {
|
||||
const alerts = useAppSelector((state) => state.alert);
|
||||
return (
|
||||
<div className="alert-wrapper">
|
||||
{alerts.map((alert) => (
|
||||
<div key={alert.id} className={`alert alert-${alert.alertType}`}>
|
||||
{alert.msg}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default Alert;
|
||||
Reference in New Issue
Block a user