Skip to content

Commit dc0c80e

Browse files
committed
style(sonar): use read only props
HCRC-162
1 parent 8111122 commit dc0c80e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/core/card/Card.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ function CardTitle({
137137
withTitleIcon,
138138
titleIcon,
139139
}: {
140-
children: React.ReactNode;
141-
direction?: CardProps['direction'];
142-
withTitleIcon: CardProps['withTitleIcon'];
143-
titleIcon: CardProps['titleIcon'];
140+
readonly children: React.ReactNode;
141+
readonly direction?: CardProps['direction'];
142+
readonly withTitleIcon: CardProps['withTitleIcon'];
143+
readonly titleIcon: CardProps['titleIcon'];
144144
}) {
145145
if (!children) {
146146
return null;
@@ -158,8 +158,8 @@ function CardSubTitle({
158158
children,
159159
backgroundColor,
160160
}: {
161-
children: React.ReactNode;
162-
backgroundColor?: CardProps['backgroundColor'];
161+
readonly children: React.ReactNode;
162+
readonly backgroundColor?: CardProps['backgroundColor'];
163163
}): React.ReactElement | null {
164164
if (!children) {
165165
return null;

0 commit comments

Comments
 (0)