File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
client/modules/Legal/pages Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { useTranslation } from 'react-i18next' ;
3- import Legal from './Legal' ;
3+ import { Legal } from './Legal' ;
44
55export function CodeOfConduct ( ) {
66 const { t } = useTranslation ( ) ;
Original file line number Diff line number Diff line change @@ -21,8 +21,13 @@ const StyledTabList = styled.nav`
2121 gap: ${ remSize ( 19 ) } ;
2222 }
2323` ;
24-
25- function Legal ( { policyFile, title } ) {
24+ export interface LegalProps {
25+ /** File name of policy */
26+ policyFile : string ;
27+ /** Title of policy */
28+ title : string ;
29+ }
30+ export function Legal ( { policyFile, title } : LegalProps ) {
2631 const { t } = useTranslation ( ) ;
2732 const [ isLoading , setIsLoading ] = useState ( true ) ;
2833 const [ policy , setPolicy ] = useState ( '' ) ;
@@ -67,5 +72,3 @@ Legal.propTypes = {
6772 */
6873 policyFile : PropTypes . string . isRequired
6974} ;
70-
71- export default Legal ;
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { useTranslation } from 'react-i18next' ;
3- import Legal from './Legal' ;
3+ import { Legal } from './Legal' ;
44
55function PrivacyPolicy ( ) {
66 const { t } = useTranslation ( ) ;
You can’t perform that action at this time.
0 commit comments