width full
This commit is contained in:
@@ -34,7 +34,12 @@ const Alert = ({ variant = 'info', message, Icon }) => {
|
|||||||
'animate-slideDown'
|
'animate-slideDown'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div className={cn('flex items-center gap-2 p-3 rounded-lg border shadow-lg min-w-[280px] max-w-md', styles.container)}>
|
<div
|
||||||
|
className={cn(
|
||||||
|
'flex items-center gap-2 p-3 rounded-lg border shadow-lg min-w-[280px] max-w-md',
|
||||||
|
styles.container
|
||||||
|
)}
|
||||||
|
>
|
||||||
{Icon && <Icon className={cn('h-5 w-5', styles.icon)} />}
|
{Icon && <Icon className={cn('h-5 w-5', styles.icon)} />}
|
||||||
<p className={cn('text-sm', styles.text)}>{message}</p>
|
<p className={cn('text-sm', styles.text)}>{message}</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -9,9 +9,20 @@ const Branches = () => {
|
|||||||
const [branches, setBranches] = useState(null);
|
const [branches, setBranches] = useState(null);
|
||||||
const [alert, setAlert] = useState(null);
|
const [alert, setAlert] = useState(null);
|
||||||
return (
|
return (
|
||||||
<div className="p-4 max-w-7xl mx-auto">
|
<div className="p-4 max-w-full mx-auto">
|
||||||
<Header Icon={Store} title={"Filial Ro'yxati"} text={"Filiallarni boshqarish va ro'yxatni yuritish tizimi"} />
|
<Header
|
||||||
{alert && alert.type === 'success' ? <Alert Icon={Check} variant="success" message={alert.message} /> : alert && alert.type === 'warning' && <Alert Icon={AlertCircle} variant="warning" message={alert.message} />}
|
Icon={Store}
|
||||||
|
title={"Filial Ro'yxati"}
|
||||||
|
text={"Filiallarni boshqarish va ro'yxatni yuritish tizimi"}
|
||||||
|
/>
|
||||||
|
{alert && alert.type === 'success' ? (
|
||||||
|
<Alert Icon={Check} variant="success" message={alert.message} />
|
||||||
|
) : (
|
||||||
|
alert &&
|
||||||
|
alert.type === 'warning' && (
|
||||||
|
<Alert Icon={AlertCircle} variant="warning" message={alert.message} />
|
||||||
|
)
|
||||||
|
)}
|
||||||
{/* Forma */}
|
{/* Forma */}
|
||||||
<CreateBranches branches={branches} setAlert={setAlert} setBranches={setBranches} />
|
<CreateBranches branches={branches} setAlert={setAlert} setBranches={setBranches} />
|
||||||
{/* Jadval */}
|
{/* Jadval */}
|
||||||
|
|||||||
@@ -12,11 +12,27 @@ const Clients = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
||||||
<div className="max-w-6xl mx-auto">
|
<div className="max-w-full mx-auto">
|
||||||
<Header Icon={Users} title={"Mijozlar Ro'yxati"} text={"Mijozlarni boshqarish va ro'yxatni yuritish tizimi"} />
|
<Header
|
||||||
{alert && alert.type === 'success' ? <Alert Icon={Check} variant="success" message={alert.message} /> : alert && alert.type === 'warning' && <Alert Icon={AlertCircle} variant="warning" message={alert.message} />}
|
Icon={Users}
|
||||||
|
title={"Mijozlar Ro'yxati"}
|
||||||
|
text={"Mijozlarni boshqarish va ro'yxatni yuritish tizimi"}
|
||||||
|
/>
|
||||||
|
{alert && alert.type === 'success' ? (
|
||||||
|
<Alert Icon={Check} variant="success" message={alert.message} />
|
||||||
|
) : (
|
||||||
|
alert &&
|
||||||
|
alert.type === 'warning' && (
|
||||||
|
<Alert Icon={AlertCircle} variant="warning" message={alert.message} />
|
||||||
|
)
|
||||||
|
)}
|
||||||
<CreateClient clients={clients} setAlert={setAlert} cargoId={cargoId} />
|
<CreateClient clients={clients} setAlert={setAlert} cargoId={cargoId} />
|
||||||
<ClientList alert={alert} setAlert={setAlert} setClients={setClients} setCargoId={setCargoId} />
|
<ClientList
|
||||||
|
alert={alert}
|
||||||
|
setAlert={setAlert}
|
||||||
|
setClients={setClients}
|
||||||
|
setCargoId={setCargoId}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -11,12 +11,19 @@ const Currency = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
||||||
<div className="max-w-7xl mx-auto">
|
<div className="max-w-full mx-auto">
|
||||||
{/* Sarlavha */}
|
{/* Sarlavha */}
|
||||||
<Header Icon={PlusCircle} title={'Valyutalar'} text={'Valyutalarni boshqarish tizimi'} />
|
<Header Icon={PlusCircle} title={'Valyutalar'} text={'Valyutalarni boshqarish tizimi'} />
|
||||||
|
|
||||||
{/* Xatolik */}
|
{/* Xatolik */}
|
||||||
{alert && alert.type === 'success' ? <Alert Icon={Check} variant="success" message={alert.message} /> : alert && alert.type === 'warning' && <Alert Icon={AlertCircle} variant="warning" message={alert.message} />}
|
{alert && alert.type === 'success' ? (
|
||||||
|
<Alert Icon={Check} variant="success" message={alert.message} />
|
||||||
|
) : (
|
||||||
|
alert &&
|
||||||
|
alert.type === 'warning' && (
|
||||||
|
<Alert Icon={AlertCircle} variant="warning" message={alert.message} />
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Forma */}
|
{/* Forma */}
|
||||||
<CreateCurrency setAlert={setAlert} editingCurrency={editingCurrency} />
|
<CreateCurrency setAlert={setAlert} editingCurrency={editingCurrency} />
|
||||||
|
|||||||
@@ -12,16 +12,32 @@ const Employees = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
||||||
<div className="max-w-7xl mx-auto">
|
<div className="max-w-full mx-auto">
|
||||||
{/* Sarlavha */}
|
{/* Sarlavha */}
|
||||||
<Header Icon={Users} title={"Xodimlar Ro'yxati"} text={"Xodimlarni boshqarish va ro'yxatni yuritish tizimi"} />
|
<Header
|
||||||
|
Icon={Users}
|
||||||
|
title={"Xodimlar Ro'yxati"}
|
||||||
|
text={"Xodimlarni boshqarish va ro'yxatni yuritish tizimi"}
|
||||||
|
/>
|
||||||
|
|
||||||
{/* Xatolik */}
|
{/* Xatolik */}
|
||||||
{alert && alert.type === 'success' ? <Alert Icon={Check} variant="success" message={alert.message} /> : alert && alert.type === 'warning' && <Alert Icon={AlertCircle} variant="warning" message={alert.message} />}
|
{alert && alert.type === 'success' ? (
|
||||||
|
<Alert Icon={Check} variant="success" message={alert.message} />
|
||||||
|
) : (
|
||||||
|
alert &&
|
||||||
|
alert.type === 'warning' && (
|
||||||
|
<Alert Icon={AlertCircle} variant="warning" message={alert.message} />
|
||||||
|
)
|
||||||
|
)}
|
||||||
|
|
||||||
<CreateEmployee clients={clients} setAlert={setAlert} cargoId={cargoId} />
|
<CreateEmployee clients={clients} setAlert={setAlert} cargoId={cargoId} />
|
||||||
{/* Jadval */}
|
{/* Jadval */}
|
||||||
<EmployesList alert={alert} setAlert={setAlert} setClients={setClients} setCargoId={setCargoId} />
|
<EmployesList
|
||||||
|
alert={alert}
|
||||||
|
setAlert={setAlert}
|
||||||
|
setClients={setClients}
|
||||||
|
setCargoId={setCargoId}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -9,9 +9,20 @@ const Payments = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
||||||
<div className="max-w-7xl mx-auto">
|
<div className="max-w-full mx-auto">
|
||||||
<Header Icon={Banknote} title={"To'lovlar tarixi"} text={"To'lovlarni boshqarish va ko‘rish tizimi"} />
|
<Header
|
||||||
{alert && alert.type === 'success' ? <Alert Icon={Check} variant="success" message={alert.message} /> : alert && alert.type === 'warning' && <Alert Icon={AlertCircle} variant="warning" message={alert.message} />}
|
Icon={Banknote}
|
||||||
|
title={"To'lovlar tarixi"}
|
||||||
|
text={"To'lovlarni boshqarish va ko‘rish tizimi"}
|
||||||
|
/>
|
||||||
|
{alert && alert.type === 'success' ? (
|
||||||
|
<Alert Icon={Check} variant="success" message={alert.message} />
|
||||||
|
) : (
|
||||||
|
alert &&
|
||||||
|
alert.type === 'warning' && (
|
||||||
|
<Alert Icon={AlertCircle} variant="warning" message={alert.message} />
|
||||||
|
)
|
||||||
|
)}
|
||||||
<PaymentsList setAlert={setAlert} />
|
<PaymentsList setAlert={setAlert} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,9 +10,20 @@ const Reference = () => {
|
|||||||
const [idHouses, setIdHouses] = useState(null);
|
const [idHouses, setIdHouses] = useState(null);
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
||||||
<div className="max-w-6xl mx-auto">
|
<div className="max-w-full mx-auto">
|
||||||
<Header Icon={DollarSign} title={"Cargo narxlari Ro'yxati"} text={"Cargo narxlarini boshqarish va ro'yxatni yuritish tizimi"} />
|
<Header
|
||||||
{alert && alert.type === 'success' ? <Alert Icon={Check} variant="success" message={alert.message} /> : alert && alert.type === 'warning' && <Alert Icon={AlertCircle} variant="warning" message={alert.message} />}
|
Icon={DollarSign}
|
||||||
|
title={"Cargo narxlari Ro'yxati"}
|
||||||
|
text={"Cargo narxlarini boshqarish va ro'yxatni yuritish tizimi"}
|
||||||
|
/>
|
||||||
|
{alert && alert.type === 'success' ? (
|
||||||
|
<Alert Icon={Check} variant="success" message={alert.message} />
|
||||||
|
) : (
|
||||||
|
alert &&
|
||||||
|
alert.type === 'warning' && (
|
||||||
|
<Alert Icon={AlertCircle} variant="warning" message={alert.message} />
|
||||||
|
)
|
||||||
|
)}
|
||||||
<CreateReference setAlert={setAlert} idHouses={idHouses} setIdHouses={setIdHouses} />
|
<CreateReference setAlert={setAlert} idHouses={idHouses} setIdHouses={setIdHouses} />
|
||||||
<ReferenceList setAlert={setAlert} setIdHouses={setIdHouses} />
|
<ReferenceList setAlert={setAlert} setIdHouses={setIdHouses} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -10,9 +10,20 @@ const Warhouses = () => {
|
|||||||
const [idHouses, setIdHouses] = useState(null);
|
const [idHouses, setIdHouses] = useState(null);
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 p-4 md:p-6 lg:p-8">
|
||||||
<div className="max-w-6xl mx-auto">
|
<div className="max-w-full mx-auto">
|
||||||
<Header Icon={Warehouse} title={"Omborlar Ro'yxati"} text={"Omborlarni boshqarish va ro'yxatni yuritish tizimi"} />
|
<Header
|
||||||
{alert && alert.type === 'success' ? <Alert Icon={Check} variant="success" message={alert.message} /> : alert && alert.type === 'warning' && <Alert Icon={AlertCircle} variant="warning" message={alert.message} />}
|
Icon={Warehouse}
|
||||||
|
title={"Omborlar Ro'yxati"}
|
||||||
|
text={"Omborlarni boshqarish va ro'yxatni yuritish tizimi"}
|
||||||
|
/>
|
||||||
|
{alert && alert.type === 'success' ? (
|
||||||
|
<Alert Icon={Check} variant="success" message={alert.message} />
|
||||||
|
) : (
|
||||||
|
alert &&
|
||||||
|
alert.type === 'warning' && (
|
||||||
|
<Alert Icon={AlertCircle} variant="warning" message={alert.message} />
|
||||||
|
)
|
||||||
|
)}
|
||||||
<CreateWarhouses setAlert={setAlert} idHouses={idHouses} setIdHouses={setIdHouses} />
|
<CreateWarhouses setAlert={setAlert} idHouses={idHouses} setIdHouses={setIdHouses} />
|
||||||
<WarhousesList setAlert={setAlert} setIdHouses={setIdHouses} />
|
<WarhousesList setAlert={setAlert} setIdHouses={setIdHouses} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user