remove context && change design & modals & function && add folder lib
This commit is contained in:
+12
-4
@@ -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
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user