diff --git a/client/src/components/helpers/full-width-row.tsx b/client/src/components/helpers/full-width-row.tsx index 798ced0a87e..e91da137a59 100644 --- a/client/src/components/helpers/full-width-row.tsx +++ b/client/src/components/helpers/full-width-row.tsx @@ -1,13 +1,12 @@ import { Row, Col } from '@freecodecamp/react-bootstrap'; import React from 'react'; -function FullWidthRow({ - children, - className -}: { - children?: React.ReactNode; +interface FullWidthRowProps { + children: React.ReactNode; className?: string; -}): JSX.Element { +} + +const FullWidthRow = ({ children, className }: FullWidthRowProps) => { return ( @@ -15,7 +14,7 @@ function FullWidthRow({ ); -} +}; FullWidthRow.displayName = 'FullWidthRow'; diff --git a/client/src/components/settings/portfolio.tsx b/client/src/components/settings/portfolio.tsx index 370277f1975..00c20aa85f1 100644 --- a/client/src/components/settings/portfolio.tsx +++ b/client/src/components/settings/portfolio.tsx @@ -219,100 +219,96 @@ class PortfolioSettings extends Component { const { state: descriptionState, message: descriptionMessage } = this.getDescriptionValidation(description); return ( -
- -
this.handleSubmit(e, id)}> - - {t('settings.labels.title')} - - {titleMessage ? {titleMessage} : null} - - - {t('settings.labels.url')} - - {urlMessage ? {urlMessage} : null} - - - {t('settings.labels.image')} - - {imageMessage ? {imageMessage} : null} - - - {t('settings.labels.description')} - - {descriptionMessage ? ( - {descriptionMessage} - ) : null} - - - {t('buttons.save-portfolio')} - - - - - {index + 1 !== arr.length && ( - <> - -
- - - )} -
-
+ +
this.handleSubmit(e, id)}> + + {t('settings.labels.title')} + + {titleMessage ? {titleMessage} : null} + + + {t('settings.labels.url')} + + {urlMessage ? {urlMessage} : null} + + + {t('settings.labels.image')} + + {imageMessage ? {imageMessage} : null} + + + {t('settings.labels.description')} + + {descriptionMessage ? ( + {descriptionMessage} + ) : null} + + + {t('buttons.save-portfolio')} + + + + + {index + 1 !== arr.length && ( + <> + +
+ + + )} +
); };