|
@@ -35,13 +35,14 @@ const SearchPanel: React.FC = () => {
|
|
|
const currentKey = useSelector(
|
|
const currentKey = useSelector(
|
|
|
(state: RootState) => state.BusinessFlow.currentKey
|
|
(state: RootState) => state.BusinessFlow.currentKey
|
|
|
);
|
|
);
|
|
|
|
|
+ const productName = useSelector((state: RootState) => state.product.productName);
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="flex flex-col gap-2 w-full">
|
|
<div className="flex flex-col gap-2 w-full">
|
|
|
<Input
|
|
<Input
|
|
|
placeholder={intl.formatMessage({
|
|
placeholder={intl.formatMessage({
|
|
|
- id: 'searchPanel.name',
|
|
|
|
|
- defaultMessage: 'searchPanel.name',
|
|
|
|
|
|
|
+ id: productName === 'VETDROS' ? 'animal.searchPanel.name' : 'searchPanel.name',
|
|
|
|
|
+ defaultMessage: productName === 'VETDROS' ? 'animal.searchPanel.name' : 'searchPanel.name',
|
|
|
})}
|
|
})}
|
|
|
prefix={<SearchOutlined />}
|
|
prefix={<SearchOutlined />}
|
|
|
size="small"
|
|
size="small"
|
|
@@ -50,8 +51,8 @@ const SearchPanel: React.FC = () => {
|
|
|
/>
|
|
/>
|
|
|
<Input
|
|
<Input
|
|
|
placeholder={intl.formatMessage({
|
|
placeholder={intl.formatMessage({
|
|
|
- id: 'searchPanel.patientId',
|
|
|
|
|
- defaultMessage: 'searchPanel.patientId',
|
|
|
|
|
|
|
+ id: productName === 'VETDROS' ? 'animal.searchPanel.patientId' : 'searchPanel.patientId',
|
|
|
|
|
+ defaultMessage: productName === 'VETDROS' ? 'animal.searchPanel.patientId' : 'searchPanel.patientId',
|
|
|
})}
|
|
})}
|
|
|
prefix={<SearchOutlined />}
|
|
prefix={<SearchOutlined />}
|
|
|
size="small"
|
|
size="small"
|