UI changes
This commit is contained in:
@ -179,15 +179,15 @@ export default function CartEventForm(props: IProps) {
|
||||
</div>
|
||||
</div>
|
||||
<div className="panel-actions">
|
||||
{!props?.inline && <Link href={urls.indexUrl} className="action-button"> Cancel </Link>}
|
||||
{!props?.inline && <Link href={urls.indexUrl} className="action-button"> Отмени </Link>}
|
||||
{evt.id &&
|
||||
<button className="button bg-red-500 hover:bg-red-700 focus:outline-none focus:shadow-outline" type="button" onClick={async () => {
|
||||
await axiosInstance.delete(urls.apiUrl + router.query.id);
|
||||
router.push(urls.indexUrl);
|
||||
}}>
|
||||
Delete
|
||||
Изтрий
|
||||
</button>}
|
||||
<button className="button bg-blue-500 hover:bg-blue-700 focus:outline-none focus:shadow-outline" type="submit"> {evt.id ? "Update" : "Create"}</button>
|
||||
<button className="button bg-blue-500 hover:bg-blue-700 focus:outline-none focus:shadow-outline" type="submit"> {evt.id ? "Обнови" : "Създай"}</button>
|
||||
</div>
|
||||
|
||||
</form >
|
||||
|
Reference in New Issue
Block a user