Fix labels on auth forms

This commit is contained in:
ErickSkrauch
2020-07-24 19:19:11 +03:00
parent 208817f69e
commit 108e5eb0e9
12 changed files with 47 additions and 40 deletions

View File

@@ -1,9 +1,10 @@
import React, { ComponentProps, ComponentType } from 'react';
import { MessageDescriptor } from 'react-intl';
import { Button } from 'app/components/ui/form';
import RejectionLink from 'app/components/auth/RejectionLink';
import AuthTitle from 'app/components/auth/AuthTitle';
import { MessageDescriptor } from 'react-intl';
import { Color } from 'app/components/ui';
import BaseAuthBody from './BaseAuthBody';
export type Factory = () => {
@@ -17,11 +18,7 @@ type RejectionLinkProps = ComponentProps<typeof RejectionLink>;
interface FactoryParams {
title: MessageDescriptor;
body: typeof BaseAuthBody;
footer: {
color?: Color;
label: string | MessageDescriptor;
autoFocus?: boolean;
};
footer: Omit<ComponentProps<typeof Button>, 'type'>;
links?: RejectionLinkProps | Array<RejectionLinkProps>;
}