Skip to content

Commit 5133029

Browse files
author
Mingze
authored
fix(resin): Spell resin tags as lowercase to avoid console warnings (#568)
1 parent 9d3d5b5 commit 5133029

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/components/ReplyForm/ReplyForm.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ const ReplyForm = (props: Props): JSX.Element => {
8383
</div>
8484
<div className="ba-Popup-footer">
8585
<ReplyButton
86-
data-resin-fileId={fileId}
87-
data-resin-isCurrent={isCurrentFileVersion}
86+
data-resin-fileid={fileId}
87+
data-resin-iscurrent={isCurrentFileVersion}
8888
data-resin-target="cancel"
8989
data-testid="ba-Popup-cancel"
9090
isDisabled={isPending}
@@ -94,8 +94,8 @@ const ReplyForm = (props: Props): JSX.Element => {
9494
<FormattedMessage {...messages.buttonCancel} />
9595
</ReplyButton>
9696
<ReplyButton
97-
data-resin-fileId={fileId}
98-
data-resin-isCurrent={isCurrentFileVersion}
97+
data-resin-fileid={fileId}
98+
data-resin-iscurrent={isCurrentFileVersion}
9999
data-resin-target="post"
100100
data-testid="ba-Popup-submit"
101101
isDisabled={hasErrors || isPending}

src/components/ReplyForm/__tests__/ReplyForm-test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ describe('ReplyForm', () => {
6060
const postButton = wrapper.find('[data-testid="ba-Popup-submit"]');
6161

6262
const resinTags = {
63-
'data-resin-fileId': defaults.fileId,
64-
'data-resin-isCurrent': defaults.isCurrentFileVersion,
63+
'data-resin-fileid': defaults.fileId,
64+
'data-resin-iscurrent': defaults.isCurrentFileVersion,
6565
};
6666

6767
expect(cancelButton.props()).toMatchObject({

0 commit comments

Comments
 (0)