vulneribilty fixed
This commit is contained in:
@@ -22,7 +22,7 @@ const PageHeader: React.FC = () => {
|
||||
<p className="mt-1 text-sm text-slate-500">{t('description')}</p>
|
||||
</div>
|
||||
<Link
|
||||
href={'/plagat'}
|
||||
href={'/plagiat'}
|
||||
className={`${pathname === '/cabinet' ? 'flex' : 'hidden'}
|
||||
items-center gap-2 px-2 py-1 group relative overflow-hidden rounded-sm bg-linear-to-br
|
||||
from-blue-500 to-blue-600 text-left shadow-md hover:shadow-xl transition-all duration-200
|
||||
|
||||
@@ -17,6 +17,7 @@ export const StateBadge: React.FC<{ state: 'paid' | 'unpaid' }> = ({
|
||||
state,
|
||||
}) => {
|
||||
const isPaid = state === 'paid';
|
||||
const t = useTranslations();
|
||||
return (
|
||||
<span
|
||||
className={[
|
||||
@@ -30,7 +31,7 @@ export const StateBadge: React.FC<{ state: 'paid' | 'unpaid' }> = ({
|
||||
isPaid ? 'bg-emerald-500' : 'bg-rose-500',
|
||||
].join(' ')}
|
||||
/>
|
||||
{isPaid ? "To'langan" : "To'lanmagan"}
|
||||
{isPaid ? t('Cabinet.paid') : t('Cabinet.unpaid')}
|
||||
</span>
|
||||
);
|
||||
};
|
||||
@@ -127,7 +128,7 @@ export const HistoryTableRow: React.FC<
|
||||
}}
|
||||
className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium text-slate-600 bg-white border border-slate-200 hover:border-slate-300 hover:text-slate-900 hover:bg-slate-50 active:scale-95 transition-all duration-150"
|
||||
>
|
||||
Ko'rish
|
||||
{tUnknown('HistoryPage.view')}
|
||||
<ArrowRight size={11} />
|
||||
</button>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user