Fix more build errors

This commit is contained in:
Darren Clarke 2023-03-15 12:17:43 +00:00
parent 1bdc1e60db
commit 30ce47826f
61 changed files with 1161 additions and 541 deletions

View file

@ -182,7 +182,7 @@ const VerificationCodeRequest = ({
onFailure,
});
})();
}, []);
}, [data.id, onFailure, onSuccess, verifyMode]);
return (
<>
@ -409,7 +409,7 @@ const VerificationCodeDialog = (props: any) => {
);
};
const SignalBotShowActions = ({ basePath, data }: any) => {
const SignalBotShowActions = ({ data }: any) => {
const [open, setOpen] = React.useState(false);
const [verifyMode, setVerifyMode] = React.useState("");
const refresh = useRefresh();

View file

@ -1,3 +1,4 @@
/* eslint-disable react/display-name */
import {
SelectInput,
required,
@ -6,19 +7,21 @@ import {
TextField,
} from "react-admin";
export const SignalBotSelectInput = (source: string) => () => (
<ReferenceInput
label="Signal Bot"
source={source}
reference="signalBots"
validate={[required()]}
>
<SelectInput optionText="phoneNumber" />
</ReferenceInput>
);
export const SignalBotSelectInput = (source: string) => () =>
(
<ReferenceInput
label="Signal Bot"
source={source}
reference="signalBots"
validate={[required()]}
>
<SelectInput optionText="phoneNumber" />
</ReferenceInput>
);
export const SignalBotField = (source: string) => () => (
<ReferenceField label="Signal Bot" reference="signalBots" source={source}>
<TextField source="phoneNumber" />
</ReferenceField>
);
export const SignalBotField = (source: string) => () =>
(
<ReferenceField label="Signal Bot" reference="signalBots" source={source}>
<TextField source="phoneNumber" />
</ReferenceField>
);