Skip to content

Commit 24d0f8d

Browse files
authored
feat: add cursor pointer to interactive elements (#927)
1 parent 67afbe3 commit 24d0f8d

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

src/components/NotificationRow.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const NotificationRow: React.FC<IProps> = ({
8080
</div>
8181

8282
<div
83-
className="flex-1 overflow-hidden"
83+
className="flex-1 overflow-hidden cursor-pointer"
8484
onClick={() => pressTitle()}
8585
role="main"
8686
>

src/components/Repository.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export const RepositoryNotifications: React.FC<IProps> = ({
4747
) : (
4848
<MarkGithubIcon size={18} />
4949
)}
50-
<span onClick={openBrowser}>{repoName}</span>
50+
<span className="cursor-pointer" onClick={openBrowser}>
51+
{repoName}
52+
</span>
5153
</div>
5254

5355
<div className="flex justify-center items-center gap-2 opacity-0 group-hover:opacity-80 transition-opacity">

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exports[`components/NotificationRow.tsx should render itself & its children 1`]
3535
</svg>
3636
</div>
3737
<div
38-
className="flex-1 overflow-hidden"
38+
className="flex-1 overflow-hidden cursor-pointer"
3939
onClick={[Function]}
4040
role="main"
4141
>

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

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ exports[`components/Repository.tsx should render itself & its children 1`] = `
1313
src="https://avatars0.githubusercontent.com/u/6333409?v=3"
1414
/>
1515
<span
16+
className="cursor-pointer"
1617
onClick={[Function]}
1718
>
1819
manosim/gitify
@@ -123,6 +124,7 @@ exports[`components/Repository.tsx should use default repository icon when avata
123124
/>
124125
</svg>
125126
<span
127+
className="cursor-pointer"
126128
onClick={[Function]}
127129
>
128130
manosim/gitify

0 commit comments

Comments
 (0)