mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
add the full width back
This commit is contained in:
parent
e553b9c360
commit
143054c110
@ -2,6 +2,7 @@ import React from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import type { Portfolio as PortfolioData } from '../../../redux/prop-types';
|
||||
import { FullWidthRow } from '../../helpers';
|
||||
|
||||
import './portfolio.css';
|
||||
|
||||
@ -15,7 +16,7 @@ function Portfolio({ portfolio = [] }: PortfolioProps): JSX.Element | null {
|
||||
return null;
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<FullWidthRow>
|
||||
<h2 className='text-center'>{t('profile.portfolio')}</h2>
|
||||
{portfolio.map(({ title, url, image, description, id }) => (
|
||||
<div className='portfolio-container' key={id}>
|
||||
@ -31,7 +32,7 @@ function Portfolio({ portfolio = [] }: PortfolioProps): JSX.Element | null {
|
||||
</div>
|
||||
))}
|
||||
<hr />
|
||||
</>
|
||||
</FullWidthRow>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user