Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit 6fe8c83

Browse files
committed
feat: use of native dropdowns
closes #2
1 parent faaa18f commit 6fe8c83

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/components/ui/Dropdown.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ interface DropdownProps {
55
onSelect: (value: string) => void;
66
includeAll?: boolean;
77
placeholder?: string;
8+
className?: string;
89
}
910

1011
const Dropdown: React.FC<DropdownProps> = ({
@@ -13,6 +14,7 @@ const Dropdown: React.FC<DropdownProps> = ({
1314
onSelect,
1415
includeAll = false,
1516
placeholder,
17+
className,
1618
}) => {
1719
const displayedOptions = includeAll ? ['All', ...options] : options;
1820

@@ -24,7 +26,7 @@ const Dropdown: React.FC<DropdownProps> = ({
2426
</label>
2527
)}
2628
<select
27-
className='w-full p-2 border bg-gray-200 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-black'
29+
className={`w-full p-2 border bg-gray-200 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 text-black ${className}`}
2830
onChange={(e) => onSelect(e.target.value)}
2931
defaultValue=''
3032
>

src/pages/employees/SentenceBuilder.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ const SentenceBuilderPage: React.FC = () => {
8686
onClick={() => setIsVerbModalOpen(true)}
8787
/>
8888
<SentenceButton
89-
defaultValue='Enter Object'
90-
label={sentenceParts.object || 'Enter Object'}
89+
defaultValue='Object'
90+
label={sentenceParts.object || 'Object'}
9191
onClick={() => {
9292
setInputType('object');
9393
setIsTextInputModalOpen(true);

0 commit comments

Comments
 (0)