LandingPageModal: convert to tsx

This commit is contained in:
Alex Gleason 2022-05-02 16:26:27 -05:00
parent 2028873d34
commit e11575ff50
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,4 @@
import classNames from 'classnames'; import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react'; import React from 'react';
import { defineMessages, useIntl } from 'react-intl'; import { defineMessages, useIntl } from 'react-intl';
@ -14,7 +13,11 @@ const messages = defineMessages({
register: { id: 'header.register.label', defaultMessage: 'Register' }, 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 intl = useIntl();
const { logo } = useSoapboxConfig(); const { logo } = useSoapboxConfig();
@ -51,8 +54,4 @@ const LandingPageModal = ({ onClose }) => {
); );
}; };
LandingPageModal.propTypes = {
onClose: PropTypes.func.isRequired,
};
export default LandingPageModal; export default LandingPageModal;