diff --git a/lib/experimental/Widgets/Content/ClockIn/ClockInControls/index.stories.tsx b/lib/experimental/Widgets/Content/ClockIn/ClockInControls/index.stories.tsx index 095d3b70..45e57905 100644 --- a/lib/experimental/Widgets/Content/ClockIn/ClockInControls/index.stories.tsx +++ b/lib/experimental/Widgets/Content/ClockIn/ClockInControls/index.stories.tsx @@ -21,7 +21,7 @@ const meta: Meta = { labels: defaultLabels, }, render: (args) => ( -
+
), @@ -92,7 +92,9 @@ export const WithOvertime: Story = { } export const Collapsed: Story = { - args: { - collapsed: true, - }, + render: (args) => ( +
+ +
+ ), } diff --git a/lib/experimental/Widgets/Content/ClockIn/ClockInControls/index.tsx b/lib/experimental/Widgets/Content/ClockIn/ClockInControls/index.tsx index 23a3bcd9..63e4e4d7 100644 --- a/lib/experimental/Widgets/Content/ClockIn/ClockInControls/index.tsx +++ b/lib/experimental/Widgets/Content/ClockIn/ClockInControls/index.tsx @@ -1,6 +1,5 @@ import { Button } from "@/components/Actions/Button" import { SolidPause, SolidPlay, SolidStop } from "@/icons/app" -import { cn } from "@/lib/utils" import { motion } from "framer-motion" import { ClockInGraph, ClockInGraphProps } from "../ClockInGraph" import { getInfo } from "./helpers" @@ -28,7 +27,6 @@ export interface ClockInControlsProps { onClockOut?: () => void /** Callback when Break button is clicked */ onBreak?: () => void - collapsed?: boolean } export function ClockInControls({ @@ -38,7 +36,6 @@ export function ClockInControls({ onClockIn, onClockOut, onBreak, - collapsed = false, }: ClockInControlsProps) { const { status, statusText, subtitle, statusColor } = getInfo({ data, @@ -47,92 +44,91 @@ export function ClockInControls({ }) return ( -
-
-
-
- {statusText} -
- -
+
+
+
+
+
+ + {statusText} + +
+ +
+
+ {subtitle && ( +

+ {subtitle} +

+ )}
- {subtitle && ( -

{subtitle}

- )} -
-
- {status === "clocked-out" && ( -
-
- )} +
+ {status === "clocked-out" && ( +
+
+ )} - {status === "clocked-in" && ( - <> -
+
-
) }