This repository was archived by the owner on Feb 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ interface DropdownProps {
55 onSelect : ( value : string ) => void ;
66 includeAll ?: boolean ;
77 placeholder ?: string ;
8+ className ?: string ;
89}
910
1011const 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 >
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments