Remove curated specials button from localized admin page
This commit is contained in:
@@ -1320,20 +1320,45 @@ export default function AdminPage({ params }: { params: { locale: string } }) {
|
|||||||
</form>
|
</form>
|
||||||
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '0.5rem' }}>
|
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '0.5rem' }}>
|
||||||
{specials.map(special => (
|
{specials.map(special => (
|
||||||
<div key={special.id} style={{
|
<div
|
||||||
background: '#f3f4f6',
|
key={special.id}
|
||||||
padding: '0.25rem 0.75rem',
|
style={{
|
||||||
borderRadius: '999px',
|
background: '#f3f4f6',
|
||||||
display: 'flex',
|
padding: '0.25rem 0.75rem',
|
||||||
alignItems: 'center',
|
borderRadius: '999px',
|
||||||
gap: '0.5rem',
|
display: 'flex',
|
||||||
fontSize: '0.875rem'
|
alignItems: 'center',
|
||||||
}}>
|
gap: '0.5rem',
|
||||||
<span>{getLocalizedValue(special.name, activeTab)} ({special._count?.songs || 0})</span>
|
fontSize: '0.875rem',
|
||||||
{special.subtitle && <span style={{ fontSize: '0.75rem', color: '#666', marginLeft: '0.25rem' }}>- {getLocalizedValue(special.subtitle, activeTab)}</span>}
|
}}
|
||||||
<Link href={`/admin/specials/${special.id}`} className="btn-primary" style={{ marginRight: '0.5rem', textDecoration: 'none' }}>{t('curate')}</Link>
|
>
|
||||||
<button onClick={() => startEditSpecial(special)} className="btn-secondary" style={{ marginRight: '0.5rem' }}>{t('edit')}</button>
|
<span>
|
||||||
<button onClick={() => handleDeleteSpecial(special.id)} className="btn-danger">{t('delete')}</button>
|
{getLocalizedValue(special.name, activeTab)} ({special._count?.songs || 0})
|
||||||
|
</span>
|
||||||
|
{special.subtitle && (
|
||||||
|
<span
|
||||||
|
style={{
|
||||||
|
fontSize: '0.75rem',
|
||||||
|
color: '#666',
|
||||||
|
marginLeft: '0.25rem',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
- {getLocalizedValue(special.subtitle, activeTab)}
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
<button
|
||||||
|
onClick={() => startEditSpecial(special)}
|
||||||
|
className="btn-secondary"
|
||||||
|
style={{ marginRight: '0.5rem' }}
|
||||||
|
>
|
||||||
|
{t('edit')}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
onClick={() => handleDeleteSpecial(special.id)}
|
||||||
|
className="btn-danger"
|
||||||
|
>
|
||||||
|
{t('delete')}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user