Skip to content

Commit

Permalink
Change filter method of autocomplete
Browse files Browse the repository at this point in the history
Also fix style issues in app.js
Related to issue #2
Related to issue #37

Signed-off-by: João Paulo Ferreira <[email protected]>
Signed-off-by: Flávio Paixão <[email protected]>
  • Loading branch information
iamferreirajp committed Jun 24, 2017
1 parent 363373a commit c8460ea
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,22 @@ const App = () => (
icon={BathAndGroomingIcon}
/>
<Resource name="financialReport" options={{ label: 'Relatório Financeiro' }} list={FinancialReportList} icon={FinancialReportIcon} />
<Resource name="appointmentRecords"
<Resource
name="appointmentRecords"
options={{ label: 'Consultas' }}
list={AppointmentRecordsList}
edit={AppointmentRecordsEdit}
create={AppointmentRecordsCreate}
remove={Delete}
icon={AttendenceIcon} />
<Resource
name="vaccinationRecords"
options={{ label: 'Vacinação' }}
list={VaccinationRecordsList}
edit={VaccinationRecordsEdit}
create={VaccinationRecordsCreate}
remove={Delete}
icon={AttendenceIcon}
/>
<Resource
name="vaccinationRecords"
options={{ label: 'Vacinação' }}
list={VaccinationRecordsList}
edit={VaccinationRecordsEdit}
create={VaccinationRecordsCreate}
remove={Delete}
/>
</Admin>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const AppointmentRecordsCreate = props => (
<ReferenceInput label="Paciente" source="patientId" reference="patients" allowEmpty>
<AutocompleteInput
optionText="patientName"
filter={AutoComplete.fuzzyFilter}
filter={AutoComplete.caseInsensitiveFilter}
style={inlineStyle}
/>
</ReferenceInput>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const AppointmentRecordsEdit = props => (
<ReferenceInput label="Paciente" source="patientId" reference="patients" allowEmpty>
<AutocompleteInput
optionText="patientName"
filter={AutoComplete.fuzzyFilter}
filter={AutoComplete.caseInsensitiveFilter}
style={inlineStyle}
/>
</ReferenceInput>
Expand Down

0 comments on commit c8460ea

Please sign in to comment.