Skip to content

Commit 493a6e3

Browse files
authored
Merge pull request #653 from AppQuality/fix-scroll-x-campaign
🔧 fix(CampaignPage.tsx): import Col component from '@appquality/unguess-design-system'
2 parents fc9d4c8 + 18208c3 commit 493a6e3

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/pages/Campaign/CampaignPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Grid, Row } from '@appquality/unguess-design-system';
1+
import { Col, Grid, Row } from '@appquality/unguess-design-system';
22
import { useEffect } from 'react';
33
import { useLocation, useNavigate, useParams } from 'react-router-dom';
44
import { useAppDispatch } from 'src/app/hooks';
@@ -80,7 +80,9 @@ const CampaignPage = ({ children }: { children: React.ReactNode }) => {
8080
>
8181
<LayoutWrapper>
8282
<Grid>
83-
<Row>{children}</Row>
83+
<Row>
84+
<Col>{children}</Col>
85+
</Row>
8486
</Grid>
8587
</LayoutWrapper>
8688
</Page>

src/pages/Campaign/useWidgets/Experience/widgets/General/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Campaign } from 'src/features/api';
2-
import { Col, Row } from '@appquality/unguess-design-system';
2+
import { Col, Grid, Row } from '@appquality/unguess-design-system';
33
import { SectionTitle } from 'src/pages/Campaign/SectionTitle';
44
import { Divider } from 'src/common/components/divider';
55
import { appTheme } from 'src/app/theme';
@@ -32,7 +32,7 @@ export const CampaignInfo = ({
3232
const { t } = useTranslation();
3333

3434
return (
35-
<div style={{ marginBottom: appTheme.space.xxl }} id={id}>
35+
<Grid style={{ marginBottom: appTheme.space.xxl }} id={id}>
3636
<Row>
3737
<Col xs={12} style={{ margin: 0 }}>
3838
<SectionTitle
@@ -50,6 +50,6 @@ export const CampaignInfo = ({
5050
<Methodology campaignId={campaign.id} isPreview={isPreview} />
5151
</div>
5252
</StyledRow>
53-
</div>
53+
</Grid>
5454
);
5555
};

src/pages/Campaign/useWidgets/Experience/widgets/Overview/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Campaign } from 'src/features/api';
2-
import { Col, Row } from '@appquality/unguess-design-system';
2+
import { Col, Grid, Row } from '@appquality/unguess-design-system';
33
import { SectionTitle } from 'src/pages/Campaign/SectionTitle';
44
import { Divider } from 'src/common/components/divider';
55
import { appTheme } from 'src/app/theme';
@@ -18,7 +18,7 @@ export const Overview = ({
1818
const { t } = useTranslation();
1919

2020
return (
21-
<div style={{ marginBottom: appTheme.space.xxl }} id={id}>
21+
<Grid style={{ marginBottom: appTheme.space.xxl }} id={id}>
2222
<Row>
2323
<Col xs={12} style={{ margin: 0 }}>
2424
<SectionTitle
@@ -33,6 +33,6 @@ export const Overview = ({
3333
<Sentiment campaignId={campaign.id} isPreview={isPreview} />
3434
</Col>
3535
</Row>
36-
</div>
36+
</Grid>
3737
);
3838
};

0 commit comments

Comments
 (0)