Maj smtp, reset password, et ajout afroshine
All checks were successful
Build and Push App / build (push) Successful in 10m29s
All checks were successful
Build and Push App / build (push) Successful in 10m29s
This commit is contained in:
@@ -44,7 +44,7 @@ export async function setFeaturedBusiness(id: string, data: {
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
console.error("Failed to set featured business:", error);
|
||||
return { success: false, error: "Erreur lors de la mise à jour de l'entrepreneur du mois" };
|
||||
return { success: false, error: "Erreur lors de la mise à jour de l'Afroshine" };
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export default function FeaturedModal({ business }: Props) {
|
||||
startTransition(async () => {
|
||||
const result = await setFeaturedBusiness(business.id, data);
|
||||
if (result.success) {
|
||||
toast.success("Entrepreneur du mois mis à jour !");
|
||||
toast.success("Afroshine mis à jour !");
|
||||
setIsOpen(false);
|
||||
} else {
|
||||
toast.error(result.error || "Une erreur est survenue");
|
||||
@@ -41,7 +41,7 @@ export default function FeaturedModal({ business }: Props) {
|
||||
};
|
||||
|
||||
const handleRemove = async () => {
|
||||
if (confirm("Retirer cet entrepreneur du titre 'Entrepreneur du mois' ?")) {
|
||||
if (confirm("Retirer cet entrepreneur du titre 'Afroshine' ?")) {
|
||||
startTransition(async () => {
|
||||
const result = await removeFeaturedBusiness(business.id);
|
||||
if (result.success) {
|
||||
@@ -79,7 +79,7 @@ export default function FeaturedModal({ business }: Props) {
|
||||
</button>
|
||||
|
||||
<div className="mb-6">
|
||||
<h2 className="text-2xl font-bold text-white mb-2">💰 Entrepreneur du Mois</h2>
|
||||
<h2 className="text-2xl font-bold text-white mb-2">💰 Afroshine</h2>
|
||||
<p className="text-slate-400">Configurez les détails pour {business.name}.</p>
|
||||
</div>
|
||||
|
||||
@@ -124,7 +124,7 @@ export default function FeaturedModal({ business }: Props) {
|
||||
className="w-full bg-amber-500 hover:bg-amber-600 text-slate-900 font-bold py-3 rounded-lg flex items-center justify-center gap-2 transition-colors"
|
||||
>
|
||||
{isPending ? <Loader2 className="w-5 h-5 animate-spin" /> : <Save className="w-5 h-5" />}
|
||||
Définir comme Entrepreneur du Mois
|
||||
Définir comme Afroshine
|
||||
</button>
|
||||
|
||||
{business.isFeatured && (
|
||||
|
||||
Reference in New Issue
Block a user