added file upload element and icons for file types

This commit is contained in:
2022-02-07 15:18:17 +00:00
parent 049483ef46
commit a78c45ce24
13 changed files with 218 additions and 65 deletions
+13 -1
View File
@@ -17,13 +17,24 @@ export const minLength = (errorMsg) => (value) =>
? errorMsg //`Must be ${min} characters or more`
: undefined;
export const leastOneValue = (errorMsg) => {};
let AdvancedSearch = (props) => {
let { t } = useTranslation();
const router = useRouter();
const { locale } = router;
const { LPAData, onSubmit, handleSubmit, myportal } = props;
const {
LPAData,
onSubmit,
handleSubmit,
myportal,
error,
pristine,
reset,
submitting,
} = props;
const appealOptionsObj = _.isEmpty(props)
? [{}]
@@ -461,6 +472,7 @@ let AdvancedSearch = (props) => {
type="submit"
name="search"
className="govuk-button"
disabled={pristine}
>
{t("common:search-button")}
</button>