File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import React from 'react';
22import styled from 'styled-components' ;
33import ReactMarkdown from 'react-markdown' ;
44import remarkSlug from 'remark-slug' ;
5- import PropTypes from 'prop-types' ;
65import { remSize , prop } from '../../../theme' ;
76
87const PolicyContainerMain = styled . main `
@@ -48,16 +47,13 @@ const PolicyContainerMain = styled.main`
4847 }
4948` ;
5049
51- function PolicyContainer ( { policy } ) {
50+ export interface PolicyContainerProps {
51+ policy : string ;
52+ }
53+ export function PolicyContainer ( { policy } : PolicyContainerProps ) {
5254 return (
5355 < PolicyContainerMain >
5456 < ReactMarkdown remarkPlugins = { [ remarkSlug ] } > { policy } </ ReactMarkdown >
5557 </ PolicyContainerMain >
5658 ) ;
5759}
58-
59- PolicyContainer . propTypes = {
60- policy : PropTypes . string . isRequired
61- } ;
62-
63- export default PolicyContainer ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { RootPage } from '../../../components/RootPage';
99import { remSize } from '../../../theme' ;
1010import Loader from '../../App/components/loader' ;
1111import Nav from '../../IDE/components/Header/Nav' ;
12- import PolicyContainer from '../components/PolicyContainer' ;
12+ import { PolicyContainer } from '../components/PolicyContainer' ;
1313
1414const StyledTabList = styled . nav `
1515 display: flex;
You can’t perform that action at this time.
0 commit comments