UI changes

This commit is contained in:
Dobromir Popov
2024-03-02 21:31:50 +02:00
parent 32a713420e
commit 5998371222
11 changed files with 17 additions and 17 deletions

View File

@ -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 >