From ecae788cd9b143426da8d72aaababbd5f80d175c Mon Sep 17 00:00:00 2001
From: he3als <65787561+he3als@users.noreply.github.com>
Date: Sat, 17 Aug 2024 02:59:07 +0100
Subject: [PATCH] feat(schedules): mobile support, updated UI
---
.../components/elements/ItemContainer.tsx | 17 ++---
.../components/elements/SwitchV2Container.tsx | 2 +-
.../server/schedules/DeleteScheduleButton.tsx | 2 +-
.../server/schedules/EditScheduleModal.tsx | 2 +-
.../schedules/ScheduleEditContainer.tsx | 63 +++++++++----------
.../server/schedules/ScheduleTaskRow.tsx | 19 +++---
6 files changed, 54 insertions(+), 51 deletions(-)
diff --git a/resources/scripts/components/elements/ItemContainer.tsx b/resources/scripts/components/elements/ItemContainer.tsx
index e11b2bb0f..fba9ff21e 100644
--- a/resources/scripts/components/elements/ItemContainer.tsx
+++ b/resources/scripts/components/elements/ItemContainer.tsx
@@ -2,22 +2,25 @@ import { useMemo } from 'react';
import { v4 } from 'uuid';
export interface ContainerProps {
- label: string;
+ title: string;
description: string;
children: React.ReactNode;
labelClasses?: string;
+ titleClasses?: string;
+ descriptionClasses?: string;
+ divClasses?: string;
}
-const ItemContainer = ({ label, description, children, labelClasses }: ContainerProps) => {
+const ItemContainer = ({ title, description, children, labelClasses, titleClasses, descriptionClasses, divClasses }: ContainerProps) => {
const uuid = useMemo(() => v4(), []);
return (
-
-
-