mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: Application du formattage sur les fichiers modifiés
This commit is contained in:
@ -1,24 +1,27 @@
|
||||
import React from 'react';
|
||||
import { Plus } from 'lucide-react';
|
||||
|
||||
const SectionHeader = ({
|
||||
icon: Icon,
|
||||
const SectionHeader = ({
|
||||
icon: Icon,
|
||||
discountStyle = false,
|
||||
title,
|
||||
description,
|
||||
button = false,
|
||||
title,
|
||||
description,
|
||||
button = false,
|
||||
buttonOpeningModal = false,
|
||||
onClick = null
|
||||
onClick = null,
|
||||
}) => {
|
||||
return (
|
||||
<div className="flex items-center justify-between mb-6">
|
||||
<div className="flex items-center space-x-4">
|
||||
<div className={`${discountStyle ? "bg-yellow-100" : "bg-emerald-100"} p-3 rounded-full shadow-md`}>
|
||||
<Icon
|
||||
className={discountStyle ?
|
||||
"w-8 h-8 text-yellow-600" :
|
||||
"w-8 h-8 text-emerald-600"
|
||||
}
|
||||
<div
|
||||
className={`${discountStyle ? 'bg-yellow-100' : 'bg-emerald-100'} p-3 rounded-full shadow-md`}
|
||||
>
|
||||
<Icon
|
||||
className={
|
||||
discountStyle
|
||||
? 'w-8 h-8 text-yellow-600'
|
||||
: 'w-8 h-8 text-emerald-600'
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@ -29,9 +32,10 @@ const SectionHeader = ({
|
||||
{button && onClick && (
|
||||
<button
|
||||
onClick={onClick}
|
||||
className={buttonOpeningModal ?
|
||||
"flex items-center bg-emerald-200 text-emerald-700 p-2 rounded-full shadow-sm hover:bg-emerald-300" :
|
||||
"text-emerald-500 hover:bg-emerald-200 rounded-full p-2"
|
||||
className={
|
||||
buttonOpeningModal
|
||||
? 'flex items-center bg-emerald-200 text-emerald-700 p-2 rounded-full shadow-sm hover:bg-emerald-300'
|
||||
: 'text-emerald-500 hover:bg-emerald-200 rounded-full p-2'
|
||||
}
|
||||
>
|
||||
<Plus className="w-6 h-6" />
|
||||
@ -41,4 +45,4 @@ const SectionHeader = ({
|
||||
);
|
||||
};
|
||||
|
||||
export default SectionHeader;
|
||||
export default SectionHeader;
|
||||
|
||||
Reference in New Issue
Block a user