fix loader and err msg member

This commit is contained in:
unknown
2025-04-24 23:44:57 +07:00
parent fdfb603c54
commit 04502f2796
5 changed files with 431 additions and 4841 deletions

425
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,20 @@
import { toAbsoluteUrl } from '@/utils'; import { toAbsoluteUrl } from '@/utils';
import { Loader2 } from 'lucide-react';
const LoaderTransparant = () => { const LoaderTransparant = () => {
return ( return (
<div className="flex flex-col items-center gap-2 justify-center fixed inset-0 z-50 bg-white bg-opacity-20 transition-opacity duration-700 ease-in-out"> <div className="flex flex-col items-center gap-2 justify-center fixed inset-0 z-50 bg-white bg-opacity-20 transition-opacity duration-700 ease-in-out">
<img <img
className="h-[30px] max-w-none" // className="h-[30px] max-w-none"
className="h-14 w-auto drop-shadow-md"
src={toAbsoluteUrl('/media/app/app-logo.png')} src={toAbsoluteUrl('/media/app/app-logo.png')}
alt="logo" alt="logo"
/> />
<div className="text-gray-500 font-medium text-sm">Loading...</div> {/* <div className="text-gray-500 font-medium text-sm">Loading...</div> */}
<div className="flex items-center gap-3 text-base text-muted-foreground font-medium">
<Loader2 className="animate-spin h-6 w-6 text-primary" />
Loading...
</div>
</div> </div>
); );
}; };

View File

@ -1,14 +1,20 @@
import { toAbsoluteUrl } from '@/utils'; import { toAbsoluteUrl } from '@/utils';
import { Loader2 } from 'lucide-react';
const ScreenLoader = () => { const ScreenLoader = () => {
return ( return (
<div className="flex flex-col items-center gap-2 justify-center fixed inset-0 z-50 bg-light transition-opacity duration-700 ease-in-out"> <div className="flex flex-col items-center gap-2 justify-center fixed inset-0 z-50 bg-light transition-opacity duration-700 ease-in-out">
<img <img
className="h-[30px] max-w-none" // className="h-[30px] max-w-none"
className="h-14 w-auto drop-shadow-md"
src={toAbsoluteUrl('/media/app/app-logo.png')} src={toAbsoluteUrl('/media/app/app-logo.png')}
alt="logo" alt="logo"
/> />
<div className="text-gray-500 font-medium text-sm">Loading...</div> {/* <div className="text-gray-500 font-medium text-sm">Loading...</div> */}
<div className="flex items-center gap-3 text-base text-muted-foreground font-medium">
<Loader2 className="animate-spin h-6 w-6 text-primary" />
Loading...
</div>
</div> </div>
); );
}; };

View File

@ -191,7 +191,9 @@ const ManageMembers = () => {
toast.success('Success Create Member. PIN sent to email'); toast.success('Success Create Member. PIN sent to email');
} }
} catch (error: any) { } catch (error: any) {
if (error?.response?.data?.message) toast.error(error?.response?.data?.message); if (error?.response?.data?.message) {
toast.error(`${error?.response?.data?.error}.\n${error?.response?.data?.message}`)
}
else toast.error(error.message); else toast.error(error.message);
} finally { } finally {
setDialogOpen(false); setDialogOpen(false);

4823
yarn.lock

File diff suppressed because it is too large Load Diff