Client: Wizard: fix agree terms error

This commit is contained in:
Viktor Fomin 2023-01-25 12:56:48 +03:00
parent 9315f76ab7
commit 4e12e7d8b0
2 changed files with 30 additions and 33 deletions

View File

@ -113,7 +113,7 @@ export const StyledAcceptTerms = styled.div`
align-items: center; align-items: center;
gap: 0.3em; gap: 0.3em;
padding-top: 12px; padding-top: 12px;
padding-bottom: 8px; padding-bottom: 24px;
.wizard-checkbox svg { .wizard-checkbox svg {
margin-right: 8px; margin-right: 8px;

View File

@ -365,38 +365,35 @@ const Wizard = (props) => {
/> />
</StyledInfo> </StyledInfo>
<FieldContainer <StyledAcceptTerms>
className="wizard-field" <Checkbox
isVertical={true} className="wizard-checkbox"
labelVisible={false} id="license"
hasError={hasErrorAgree} name="confirm"
errorMessage={t("ErrorLicenseRead")} label={t("License")}
> isChecked={agreeTerms}
<StyledAcceptTerms> onChange={onAgreeTermsChange}
<Checkbox isDisabled={isCreated}
className="wizard-checkbox" hasError={hasErrorAgree}
id="license" />
name="confirm" <Link
label={t("License")} type="page"
isChecked={agreeTerms} color={
onChange={onAgreeTermsChange} hasErrorAgree
isDisabled={isCreated} ? theme.checkbox.errorColor
/> : theme.client.wizard.linkColor
<Link }
type="page" fontSize="13px"
color={theme.client.wizard.linkColor} target="_blank"
fontSize="13px" href={
target="_blank" urlLicense
href={ ? urlLicense
urlLicense : "https://gnu.org/licenses/gpl-3.0.html"
? urlLicense }
: "https://gnu.org/licenses/gpl-3.0.html" >
} {t("LicenseLink")}
> </Link>
{t("LicenseLink")} </StyledAcceptTerms>
</Link>
</StyledAcceptTerms>
</FieldContainer>
<Button <Button
size="medium" size="medium"