forked from polka_billy/porridger
Removed orphane code and root package-lock
This commit is contained in:
@ -38,7 +38,7 @@ const View = ({
|
||||
|
||||
<span>{categoryNames[category]}</span>
|
||||
<span className='m-2'>•</span>{/* dot */}
|
||||
<span>Годен до {new Date(bestBy).toLocaleString('ru-RU')}</span>
|
||||
<span>Годен до {bestBy}</span>
|
||||
|
||||
<p className='mb-0'>{description}</p>
|
||||
|
||||
@ -84,10 +84,10 @@ function Control({
|
||||
<>
|
||||
<p>Забронировали {bookedBy + (bookButton.disabled ? 1 : 0)} чел.</p>
|
||||
{(myId === userId) ? (
|
||||
<>
|
||||
<Button variant='success' onClick={showDispose}>Утилизировать</Button>
|
||||
<Button variant='success' onClick={() => void handleRemove(id)} {...removeButton} />
|
||||
</>
|
||||
<div className='m-0'>
|
||||
<Button className='m-1' variant='success' onClick={showDispose}>Утилизировать</Button>
|
||||
<Button className='m-1' variant='success' onClick={() => void handleRemove(id)} {...removeButton} />
|
||||
</div>
|
||||
) : (
|
||||
<Button variant='success' onClick={() => void handleBook(id)} {...bookButton} />
|
||||
)}
|
||||
|
Reference in New Issue
Block a user