diff --git a/resources/js/components/SettingsPanel.tsx b/resources/js/components/SettingsPanel.tsx index 9534dc2..f40a963 100644 --- a/resources/js/components/SettingsPanel.tsx +++ b/resources/js/components/SettingsPanel.tsx @@ -1,9 +1,3 @@ -import { - Sheet, - SheetContent, - SheetHeader, - SheetTitle, -} from '@/components/ui/sheet'; import { csrfToken } from '@/lib/utils'; import { type SharedData } from '@/types'; import { router, usePage } from '@inertiajs/react'; @@ -21,13 +15,13 @@ interface DistributionOption { const distributionOptions: DistributionOption[] = [ { value: 'even', - label: 'Even Split', + label: 'EVEN SPLIT', description: 'Split evenly across buckets in each phase, respecting individual capacity', }, { value: 'priority', - label: 'Priority Order', + label: 'PRIORITY ORDER', description: 'Fill highest-priority bucket first, then next', }, ]; @@ -38,7 +32,6 @@ interface SettingsPanelProps { } export default function SettingsPanel({ - open, onOpenChange, }: SettingsPanelProps) { const { scenario } = usePage().props; @@ -72,71 +65,61 @@ export default function SettingsPanel({ }; return ( - - - - Settings - +
+
+

+ SETTINGS +

+ +
-
-
- - Distribution Mode - {saveStatus === 'success' && ( - - Saved - - )} - {saveStatus === 'error' && ( - - Failed to save - - )} - -

- How income is divided across buckets within each - phase -

-
- {distributionOptions.map((option) => ( - - ))} -
-
+
+ + DISTRIBUTION MODE + {saveStatus === 'success' && ( + SAVED + )} + {saveStatus === 'error' && ( + FAILED + )} + +
+ {distributionOptions.map((option) => ( + + ))}
- - +
+
); } diff --git a/resources/js/pages/Scenarios/Show.tsx b/resources/js/pages/Scenarios/Show.tsx index 5f9fc72..699a568 100644 --- a/resources/js/pages/Scenarios/Show.tsx +++ b/resources/js/pages/Scenarios/Show.tsx @@ -166,12 +166,12 @@ export default function Show({ scenario, buckets }: Props) {
{/* Header */} -
+

BUCKETS

- +
+ +
{/* Buckets */}