LandingPageModal: convert to tsx

api-accept
Alex Gleason 2 years ago
parent 2028873d34
commit e11575ff50
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -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…
Cancel
Save