@@ -84,38 +84,39 @@ const PatientSearch: React.FC<PatientSearchProps> = ({ hidePanel }) => {
84
84
< Search
85
85
className = { styles . patientSearchInput }
86
86
onChange = { ( $event ) => handleChange ( $event . target . value ) }
87
- placeholder = { t ( 'searchForPatient' , 'Search for a patient' ) }
87
+ placeholder = { t ( 'searchForPatient' , 'Search for a patient by name or identifier number ' ) }
88
88
labelText = ""
89
89
ref = { searchInput }
90
90
autoFocus = { true }
91
- size = "xl"
92
91
/>
93
92
94
- { ! isEmpty ( searchResults ) && (
95
- < div className = { styles . searchResults } >
96
- < p className = { styles . resultsText } > { t ( 'patientsFound' , { count : searchResults . length } ) } </ p >
97
- < PatientSearchResults hidePanel = { hidePanel } searchTerm = { searchTerm } patients = { results } />
98
- < div className = { styles . pagination } >
99
- < PaginationNav itemsShown = { resultsPerPage } totalItems = { totalPages } onChange = { handlePageChange } />
93
+ < div className = { styles . searchResultsContainer } >
94
+ { ! isEmpty ( searchResults ) && (
95
+ < div className = { styles . searchResults } >
96
+ < p className = { styles . resultsText } > { t ( 'patientsFound' , { count : searchResults . length } ) } </ p >
97
+ < PatientSearchResults hidePanel = { hidePanel } searchTerm = { searchTerm } patients = { results } />
98
+ < div className = { styles . pagination } >
99
+ < PaginationNav itemsShown = { resultsPerPage } totalItems = { totalPages } onChange = { handlePageChange } />
100
+ </ div >
100
101
</ div >
101
- </ div >
102
- ) }
103
- { emptyResult && (
104
- < div className = { styles . searchResults } >
105
- < p className = { styles . resultsText } > { t ( 'noResultsFound' , 'No results found' ) } </ p >
106
- < Tile className = { styles . emptySearchResultsTile } >
107
- < EmptyDataIllustration / >
108
- < p className = { styles . emptyResultText } >
109
- { t ( 'noPatientChartsFoundMessage' , 'Sorry, no patient charts have been found' ) }
110
- </ p >
111
- < p className = { styles . actionText } >
112
- < span > { t ( 'trySearchWithPatientUniqueID' , "Try searching with the patient's unique ID number" ) } </ span >
113
- < br / >
114
- < span > { t ( 'orPatientName' , "OR the patient's name(s)" ) } </ span >
115
- </ p >
116
- </ Tile >
117
- </ div >
118
- ) }
102
+ ) }
103
+ { emptyResult && (
104
+ < div className = { styles . searchResults } >
105
+ < p className = { styles . resultsText } > { t ( 'noResultsFound' , 'No results found' ) } </ p >
106
+ < Tile className = { styles . emptySearchResultsTile } >
107
+ < EmptyDataIllustration / >
108
+ < p className = { styles . emptyResultText } >
109
+ { t ( 'noPatientChartsFoundMessage' , 'Sorry, no patient charts have been found' ) }
110
+ </ p >
111
+ < p className = { styles . actionText } >
112
+ < span > { t ( 'trySearchWithPatientUniqueID' , "Try searching with the patient's unique ID number" ) } </ span >
113
+ < br / >
114
+ < span > { t ( 'orPatientName' , "OR the patient's name(s)" ) } </ span >
115
+ </ p >
116
+ </ Tile >
117
+ </ div >
118
+ ) }
119
+ </ div >
119
120
</ div >
120
121
) ;
121
122
} ;
0 commit comments