diff --git a/client/src/client-only-routes/show-certification.tsx b/client/src/client-only-routes/show-certification.tsx index 692b75e56eb..1312394fe7b 100644 --- a/client/src/client-only-routes/show-certification.tsx +++ b/client/src/client-only-routes/show-certification.tsx @@ -1,4 +1,4 @@ -import { Row, Col, Image, Button } from '@freecodecamp/react-bootstrap'; +import { Row, Image, Button } from '@freecodecamp/react-bootstrap'; import { isEmpty } from 'lodash-es'; import { QRCodeSVG } from 'qrcode.react'; import React, { useEffect, useState } from 'react'; @@ -6,8 +6,8 @@ import { Trans, useTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { bindActionCreators, Dispatch } from 'redux'; import { createSelector } from 'reselect'; +import { Container, Col } from '@freecodecamp/ui'; -import { Container } from '@freecodecamp/ui'; import envData from '../../config/env.json'; import { getLangCode } from '../../../shared/config/i18n'; import FreeCodeCampLogo from '../assets/icons/freecodecamp'; diff --git a/client/src/client-only-routes/show-user.tsx b/client/src/client-only-routes/show-user.tsx index 04c4009639c..c7a8b8cfb87 100644 --- a/client/src/client-only-routes/show-user.tsx +++ b/client/src/client-only-routes/show-user.tsx @@ -4,7 +4,6 @@ import { FormGroup, ControlLabel, Button, - Col, Row } from '@freecodecamp/react-bootstrap'; import React, { useState } from 'react'; @@ -13,6 +12,7 @@ import type { TFunction } from 'i18next'; import { Trans, withTranslation } from 'react-i18next'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; +import { Col } from '@freecodecamp/ui'; import Login from '../components/Header/components/login'; diff --git a/client/src/components/Donation/donation-modal.tsx b/client/src/components/Donation/donation-modal.tsx index 56ef429314a..a19346f90a2 100644 --- a/client/src/components/Donation/donation-modal.tsx +++ b/client/src/components/Donation/donation-modal.tsx @@ -1,5 +1,11 @@ -import { Modal, Button, Col, Row } from '@freecodecamp/react-bootstrap'; -import { Tabs, TabsContent, TabsTrigger, TabsList } from '@freecodecamp/ui'; +import { Modal, Button, Row } from '@freecodecamp/react-bootstrap'; +import { + Tabs, + TabsContent, + TabsTrigger, + TabsList, + Col +} from '@freecodecamp/ui'; import { WindowLocation } from '@reach/router'; import React, { useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; @@ -8,6 +14,7 @@ import { useFeature } from '@growthbook/growthbook-react'; import { goToAnchor } from 'react-scrollable-anchor'; import { bindActionCreators, Dispatch, AnyAction } from 'redux'; import { createSelector } from 'reselect'; + import { PaymentContext, subscriptionAmounts, diff --git a/client/src/components/Donation/donation.css b/client/src/components/Donation/donation.css index 5b1e87c3911..99cfb1aa425 100644 --- a/client/src/components/Donation/donation.css +++ b/client/src/components/Donation/donation.css @@ -92,6 +92,15 @@ margin-bottom: 0; } +@media (min-width: 1200px) { + /* + This style allows multi columns in the same row. + It will become a functionality once the Grid system is updated. + */ + .donate-page-wrapper > div > div { + float: left; + } +} .donate-input-element { padding-top: 8px; } diff --git a/client/src/components/helpers/full-width-row.tsx b/client/src/components/helpers/full-width-row.tsx index 707b6621b62..96db7e9c9b6 100644 --- a/client/src/components/helpers/full-width-row.tsx +++ b/client/src/components/helpers/full-width-row.tsx @@ -1,4 +1,5 @@ -import { Row, Col } from '@freecodecamp/react-bootstrap'; +import { Row } from '@freecodecamp/react-bootstrap'; +import { Col } from '@freecodecamp/ui'; import React from 'react'; interface FullWidthRowProps { diff --git a/client/src/components/landing/components/certifications.tsx b/client/src/components/landing/components/certifications.tsx index 72f2288ee18..88968272d55 100644 --- a/client/src/components/landing/components/certifications.tsx +++ b/client/src/components/landing/components/certifications.tsx @@ -1,5 +1,6 @@ -import { Col } from '@freecodecamp/react-bootstrap'; import React from 'react'; +import { Col } from '@freecodecamp/ui'; + import Map from '../../Map/index'; import { Spacer } from '../../helpers'; import BigCallToAction from './big-call-to-action'; diff --git a/client/src/components/landing/components/faq.tsx b/client/src/components/landing/components/faq.tsx index 170c5f7aa63..005ecd5188b 100644 --- a/client/src/components/landing/components/faq.tsx +++ b/client/src/components/landing/components/faq.tsx @@ -1,6 +1,7 @@ import React from 'react'; -import { Col } from '@freecodecamp/react-bootstrap'; import { useTranslation } from 'react-i18next'; +import { Col } from '@freecodecamp/ui'; + import { Spacer } from '../../helpers'; import BigCallToAction from './big-call-to-action'; diff --git a/client/src/components/landing/components/landing-top.tsx b/client/src/components/landing/components/landing-top.tsx index 01fb9a41a1e..212850af1d7 100644 --- a/client/src/components/landing/components/landing-top.tsx +++ b/client/src/components/landing/components/landing-top.tsx @@ -1,7 +1,8 @@ -import { Col, Row } from '@freecodecamp/react-bootstrap'; +import { Row } from '@freecodecamp/react-bootstrap'; import React from 'react'; import { useTranslation } from 'react-i18next'; -import { Container } from '@freecodecamp/ui'; +import { Container, Col } from '@freecodecamp/ui'; + import { clientLocale } from '../../../../config/env.json'; import { AmazonLogo, diff --git a/client/src/components/layouts/rtl-layout.css b/client/src/components/layouts/rtl-layout.css index cb17e903453..7b79d6f5e13 100644 --- a/client/src/components/layouts/rtl-layout.css +++ b/client/src/components/layouts/rtl-layout.css @@ -159,9 +159,3 @@ sections that need to stay left to right [dir='rtl'] [name='payment-method'] { font-family: 'NotoSansArabic'; } - -@media (min-width: 980px) { - [dir='rtl'] .donate-page-wrapper > .row { - display: flex; - } -} diff --git a/client/src/components/profile/__snapshots__/profile.test.tsx.snap b/client/src/components/profile/__snapshots__/profile.test.tsx.snap index d5dd774d07a..d0b4a4f5310 100644 --- a/client/src/components/profile/__snapshots__/profile.test.tsx.snap +++ b/client/src/components/profile/__snapshots__/profile.test.tsx.snap @@ -18,7 +18,7 @@ exports[` renders correctly 1`] = ` class="row" >
renders correctly 1`] = ` class="row" >