From ffcfb6b15c01597d3b6a5815d8b52c179f5fc95a Mon Sep 17 00:00:00 2001 From: Dobromir Popov Date: Sat, 2 Mar 2024 22:49:11 +0200 Subject: [PATCH] UI changes; availability form prettify --- components/availability/AvailabilityForm.js | 12 +++++++----- components/location/LocationForm.js | 2 +- components/sidebar.tsx | 2 +- content/telegram_users.json | 4 ++++ styles/global.css | 2 +- 5 files changed, 14 insertions(+), 8 deletions(-) diff --git a/components/availability/AvailabilityForm.js b/components/availability/AvailabilityForm.js index 544f5fb..e94791c 100644 --- a/components/availability/AvailabilityForm.js +++ b/components/availability/AvailabilityForm.js @@ -437,9 +437,10 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on }, []); return ( -
+ //
+
-
+

{availability.id ? "Редактирай" : "Нова"} възможност

@@ -508,10 +509,11 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
{/* */} -
- +
+ + {availability.id && ( - <> )} diff --git a/components/location/LocationForm.js b/components/location/LocationForm.js index 9f19d6e..098186a 100644 --- a/components/location/LocationForm.js +++ b/components/location/LocationForm.js @@ -256,7 +256,7 @@ export default function LocationForm() {
diff --git a/components/sidebar.tsx b/components/sidebar.tsx index a3c0792..b0d4838 100644 --- a/components/sidebar.tsx +++ b/components/sidebar.tsx @@ -180,7 +180,7 @@ function UserDetails({ session }) {
diff --git a/content/telegram_users.json b/content/telegram_users.json index 7b66e08..ba6f826 100644 --- a/content/telegram_users.json +++ b/content/telegram_users.json @@ -2,5 +2,9 @@ { "chatId": 777826553, "phoneNumber": "+359883351579" + }, + { + "chatId": 882873119, + "phoneNumber": "359896260509" } ] \ No newline at end of file diff --git a/styles/global.css b/styles/global.css index 90eb37d..e1e7da7 100644 --- a/styles/global.css +++ b/styles/global.css @@ -27,7 +27,7 @@ body { @apply m-2 text-white font-bold py-2 px-4 rounded bg-blue-500 hover:bg-blue-700; } .panel-actions { - @apply flex justify-end items-center justify-between; + @apply flex justify-end items-center justify-between; } .action-button { @apply inline-block align-baseline font-bold text-blue-500 hover:text-blue-800;