From 691cc3aa4cdc1eee556ffee8637ebe697ed17b28 Mon Sep 17 00:00:00 2001 From: Rami Abdou Date: Wed, 23 Jul 2025 10:35:25 -0700 Subject: [PATCH 1/2] remove readonly stylign --- packages/ui/src/components/input.tsx | 8 +------- packages/ui/src/components/select.tsx | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/ui/src/components/input.tsx b/packages/ui/src/components/input.tsx index 25279bfaf..a6a07f735 100644 --- a/packages/ui/src/components/input.tsx +++ b/packages/ui/src/components/input.tsx @@ -171,16 +171,10 @@ function formatPhoneNumber(input: string): string { // Helpers -type InputCnOptions = { - readOnly?: boolean; -}; - -export function getInputCn(options: InputCnOptions = { readOnly: true }) { +export function getInputCn() { return cx( 'w-full rounded-lg border border-gray-300 p-2', 'disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-500', - options.readOnly && - 'read-only:cursor-not-allowed read-only:bg-gray-50 read-only:text-gray-500', 'focus:border-primary' ); } diff --git a/packages/ui/src/components/select.tsx b/packages/ui/src/components/select.tsx index fdc00ff6a..eec76cde9 100644 --- a/packages/ui/src/components/select.tsx +++ b/packages/ui/src/components/select.tsx @@ -34,7 +34,7 @@ export function Select({ return (