remove context && change design & modals & function && add folder lib

This commit is contained in:
Ehsan
2025-05-10 17:05:06 +03:30
parent a89fc4a3f9
commit f2e880c721
10 changed files with 160 additions and 160 deletions
+12 -4
View File
@@ -88,13 +88,21 @@ export const alert = (type, text, prop) => {
{type === "error"
? "خطا"
: type === "warning"
? "هشدار"
: type === "info"
? "اعلام"
: "موفقیت"}
? "هشدار"
: type === "info"
? "اعلام"
: "موفقیت"}
</p>
<p className="text-[14px] font-normal">{text}</p>
</div>,
{ prop }
);
};
export const addLabelToList = (list) =>
list.map(item => {
return {
...item,
label: item.name
}
})