Skip to content

Commit 10fd176

Browse files
authored
Merge pull request #1218 from garvthakre/refactor/convert-footer-to-typescript
Convert footer component to typescript
2 parents 5d1f3b5 + 3aef913 commit 10fd176

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed
Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
*/
2020

2121
import * as bootstrap from 'react-bootstrap';
22-
23-
import PropTypes from 'prop-types';
2422
import React from 'react';
2523

2624

2725
const {Col, Container, Row} = bootstrap;
2826

29-
function Footer(props) {
30-
const {repositoryUrl, siteRevision} = props;
31-
27+
type FooterProps = {
28+
repositoryUrl: string;
29+
siteRevision: string;
30+
};
31+
function Footer({repositoryUrl, siteRevision}: Props) {
3232
return (
3333
<footer className="footer">
3434
<Container fluid>
@@ -89,10 +89,4 @@ function Footer(props) {
8989
);
9090
}
9191

92-
Footer.displayName = 'Footer';
93-
Footer.propTypes = {
94-
repositoryUrl: PropTypes.string.isRequired,
95-
siteRevision: PropTypes.string.isRequired
96-
};
97-
9892
export default Footer;

0 commit comments

Comments
 (0)