mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-27 07:20:23 +05:30
af59cc033f
Convert more components from class components to functional. Fix invalid finish state when client was auto approved
23 lines
518 B
TypeScript
23 lines
518 B
TypeScript
import React, { FC } from 'react';
|
|
import { Helmet } from 'react-helmet-async';
|
|
import { FormattedMessage as Message, MessageDescriptor } from 'react-intl';
|
|
|
|
interface Props {
|
|
title: MessageDescriptor;
|
|
}
|
|
|
|
const AuthTitle: FC<Props> = ({ title }) => {
|
|
return (
|
|
<Message {...title}>
|
|
{(msg) => (
|
|
<span>
|
|
{msg}
|
|
<Helmet title={msg as string} />
|
|
</span>
|
|
)}
|
|
</Message>
|
|
);
|
|
};
|
|
|
|
export default AuthTitle;
|