@@ -21,7 +21,7 @@ const OPTIONS = [
2121 { label : 'Nervous system1' , badge : 'My Organization 1' , selected : false } ,
2222 { label : 'Nervous system2' , badge : 'ODC-TBI' , selected : false } ,
2323 { label : 'Nervous system3' , badge : 'Dk-net' , selected : false } ,
24- { label : 'Nervous system4 ' , badge : 'My Organization 2' , selected : false }
24+ { label : 'Nervous system666 ' , badge : 'My Organization 2' , selected : false }
2525] ;
2626
2727const styles = {
@@ -81,7 +81,7 @@ const styles = {
8181 }
8282} ;
8383
84- const OntologySearch = ( { placeholder, fullWidth = false , disabled } ) => {
84+ const OntologySearch = ( { placeholder, fullWidth = false , disabled, extra } ) => {
8585 const [ searchTerm , setSearchTerm ] = React . useState ( '' ) ;
8686 const [ openList , setOpenList ] = React . useState ( false ) ;
8787 const [ selectedValue , setSelectedValue ] = React . useState ( null ) ;
@@ -141,7 +141,7 @@ const OntologySearch = ({ placeholder, fullWidth = false, disabled }) => {
141141
142142 const PaperComponent = useMemo ( ( ) => {
143143 const Component = ( { children } ) => (
144- < Box sx = { styles . popperBox } >
144+ < Box sx = { { ... styles . popperBox , ... extra } } >
145145 { children }
146146 < Divider sx = { { marginTop : '.31rem' } } />
147147 < Box p = '.75rem 1rem' >
@@ -257,7 +257,8 @@ OntologySearch.propTypes = {
257257 fullWidth : PropTypes . bool ,
258258 key : PropTypes . string ,
259259 children : PropTypes . node ,
260- disabled : PropTypes . bool
260+ disabled : PropTypes . bool ,
261+ extra : PropTypes . object
261262} ;
262263
263- export default OntologySearch ;
264+ export default OntologySearch ;
0 commit comments