LandingPageModal: convert to tsx
This commit is contained in:
parent
2028873d34
commit
e11575ff50
|
@ -1,5 +1,4 @@
|
|||
import classNames from 'classnames';
|
||||
import PropTypes from 'prop-types';
|
||||
import React from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
|
@ -14,7 +13,11 @@ const messages = defineMessages({
|
|||
register: { id: 'header.register.label', defaultMessage: 'Register' },
|
||||
});
|
||||
|
||||
const LandingPageModal = ({ onClose }) => {
|
||||
interface ILandingPageModal {
|
||||
onClose: (type: string) => void,
|
||||
}
|
||||
|
||||
const LandingPageModal: React.FC<ILandingPageModal> = ({ onClose }) => {
|
||||
const intl = useIntl();
|
||||
|
||||
const { logo } = useSoapboxConfig();
|
||||
|
@ -51,8 +54,4 @@ const LandingPageModal = ({ onClose }) => {
|
|||
);
|
||||
};
|
||||
|
||||
LandingPageModal.propTypes = {
|
||||
onClose: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
export default LandingPageModal;
|
Loading…
Reference in New Issue