Skip to content

Commit fca0767

Browse files
authored
refactor: use sentence case for interaction (#1558)
* refactor: rename `Done` and `Read` to `done` and `read` Signed-off-by: Adam Setch <[email protected]> * refactor: mark repository sentence case Signed-off-by: Adam Setch <[email protected]> --------- Signed-off-by: Adam Setch <[email protected]>
1 parent 8797b08 commit fca0767

9 files changed

+79
-79
lines changed

src/components/NotificationRow.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ describe('components/NotificationRow.tsx', () => {
204204
</AppContext.Provider>,
205205
);
206206

207-
fireEvent.click(screen.getByTitle('Mark as Read'));
207+
fireEvent.click(screen.getByTitle('Mark as read'));
208208
expect(markNotificationRead).toHaveBeenCalledTimes(1);
209209
});
210210

@@ -224,7 +224,7 @@ describe('components/NotificationRow.tsx', () => {
224224
</AppContext.Provider>,
225225
);
226226

227-
fireEvent.click(screen.getByTitle('Mark as Done'));
227+
fireEvent.click(screen.getByTitle('Mark as done'));
228228
expect(markNotificationDone).toHaveBeenCalledTimes(1);
229229
});
230230

src/components/NotificationRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export const NotificationRow: FC<INotificationRow> = ({
131131
<HoverGroup>
132132
{isMarkAsDoneFeatureSupported(notification.account) && (
133133
<InteractionButton
134-
title="Mark as Done"
134+
title="Mark as done"
135135
icon={CheckIcon}
136136
size={Size.MEDIUM}
137137
onClick={() => {
@@ -142,7 +142,7 @@ export const NotificationRow: FC<INotificationRow> = ({
142142
/>
143143
)}
144144
<InteractionButton
145-
title="Mark as Read"
145+
title="Mark as read"
146146
icon={ReadIcon}
147147
size={Size.SMALL}
148148
onClick={() => {

src/components/RepositoryNotifications.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('components/RepositoryNotifications.tsx', () => {
6464
</AppContext.Provider>,
6565
);
6666

67-
fireEvent.click(screen.getByTitle('Mark Repository as Read'));
67+
fireEvent.click(screen.getByTitle('Mark repository as read'));
6868

6969
expect(markRepoNotificationsRead).toHaveBeenCalledWith(
7070
mockSingleNotification,
@@ -80,7 +80,7 @@ describe('components/RepositoryNotifications.tsx', () => {
8080
</AppContext.Provider>,
8181
);
8282

83-
fireEvent.click(screen.getByTitle('Mark Repository as Done'));
83+
fireEvent.click(screen.getByTitle('Mark repository as done'));
8484

8585
expect(markRepoNotificationsDone).toHaveBeenCalledWith(
8686
mockSingleNotification,

src/components/RepositoryNotifications.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const RepositoryNotifications: FC<IRepositoryNotifications> = ({
8383
<HoverGroup>
8484
{isMarkAsDoneFeatureSupported(repoNotifications[0].account) && (
8585
<InteractionButton
86-
title="Mark Repository as Done"
86+
title="Mark repository as done"
8787
icon={CheckIcon}
8888
size={Size.MEDIUM}
8989
onClick={(event: MouseEvent<HTMLElement>) => {
@@ -96,7 +96,7 @@ export const RepositoryNotifications: FC<IRepositoryNotifications> = ({
9696
/>
9797
)}
9898
<InteractionButton
99-
title="Mark Repository as Read"
99+
title="Mark repository as read"
100100
icon={ReadIcon}
101101
size={Size.SMALL}
102102
onClick={(event: MouseEvent<HTMLElement>) => {

src/components/__snapshots__/AccountNotifications.test.tsx.snap

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/__snapshots__/NotificationRow.test.tsx.snap

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)