Skip to content

Commit 9a11b68

Browse files
committed
More automated code review addressed
1 parent bf01755 commit 9a11b68

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

locale/defaultMessages.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6330,6 +6330,9 @@
63306330
"XtlUj6": {
63316331
"string": "Add your first rule to set up a promotion"
63326332
},
6333+
"Xu4ST7": {
6334+
"string": "No conditions added, click button below to create one"
6335+
},
63336336
"XvbjyW": {
63346337
"context": "add new structure",
63356338
"string": "Create new item"
@@ -8299,9 +8302,6 @@
82998302
"context": "resent code success message",
83008303
"string": "Code resent to customer"
83018304
},
8302-
"jL7f0z": {
8303-
"string": "No conditions added, click button below to create one"
8304-
},
83058305
"jMzyU8": {
83068306
"context": "tax classes card header",
83078307
"string": "Tax classes"

src/discounts/components/DiscountRules/DiscountRules.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { type Rule } from "@dashboard/discounts/models";
44
import { useLabelMapsContext } from "@dashboard/discounts/views/DiscountDetails/context/context";
55
import { type ChannelFragment, type PromotionTypeEnum } from "@dashboard/graphql";
66
import { type CommonError } from "@dashboard/utils/errors/common";
7+
import { Box } from "@saleor/macaw-ui-next";
78
import { useEffect, useMemo, useState } from "react";
89
import { useIntl } from "react-intl";
910

@@ -92,12 +93,12 @@ export const DiscountRules = <ErrorCode,>({
9293
>
9394
<DashboardCard marginBottom={20}>
9495
<DashboardCard.Header>
95-
<DashboardCard.Title>
96-
{intl.formatMessage(messages.title)}
96+
<Box display="flex" flexDirection="column">
97+
<DashboardCard.Title>{intl.formatMessage(messages.title)}</DashboardCard.Title>
9798
<DashboardCard.Subtitle fontSize={3} color="default2">
9899
{intl.formatMessage(messages.titleDescription)}
99100
</DashboardCard.Subtitle>
100-
</DashboardCard.Title>
101+
</Box>
101102
<DashboardCard.Toolbar>
102103
<AddButton onClick={() => setIsModalOpen(true)} />
103104
</DashboardCard.Toolbar>

0 commit comments

Comments
 (0)