Skip to content

Commit e766d7c

Browse files
authored
Merge branch 'main' into renovate/primer-react-37.x
2 parents b47c366 + 841faab commit e766d7c

15 files changed

+137
-141
lines changed

src/renderer/components/buttons/PillButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { FC } from 'react';
22

33
import type { Icon } from '@primer/octicons-react';
4-
import { Octicon, Stack, Text } from '@primer/react';
4+
import { Stack, Text } from '@primer/react';
55

66
import { type IconColor, Size } from '../../types';
77

@@ -21,7 +21,7 @@ export const PillButton: FC<IPillButton> = (props: IPillButton) => {
2121
className="flex gap-1 items-center text-xxs px-1 m-0.5 rounded-full bg-gitify-pill-rest hover:bg-gitify-pill-hover"
2222
>
2323
<Stack direction="horizontal" align="center" gap="condensed">
24-
<Octicon icon={props.icon} size={Size.XSMALL} className={props.color} />
24+
<props.icon size={Size.XSMALL} className={props.color} />
2525
{props.metric && <Text>{props.metric}</Text>}
2626
</Stack>
2727
</button>

src/renderer/components/buttons/__snapshots__/PillButton.test.tsx.snap

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

src/renderer/components/notifications/NotificationRow.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from 'react';
88

99
import { BellSlashIcon, CheckIcon, ReadIcon } from '@primer/octicons-react';
10-
import { IconButton, Octicon, Tooltip } from '@primer/react';
10+
import { IconButton, Tooltip } from '@primer/react';
1111

1212
import { AppContext } from '../../context/App';
1313
import { Opacity, Size } from '../../types';
@@ -96,11 +96,7 @@ export const NotificationRow: FC<INotificationRow> = ({
9696
>
9797
<div className="mr-3 flex items-center justify-center">
9898
<Tooltip text={notificationType} direction="e">
99-
<Octicon
100-
icon={NotificationIcon}
101-
size={Size.LARGE}
102-
className={iconColor}
103-
/>
99+
<NotificationIcon size={Size.LARGE} className={iconColor} />
104100
</Tooltip>
105101
</div>
106102

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

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

src/renderer/components/notifications/__snapshots__/NotificationFooter.test.tsx.snap

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

0 commit comments

Comments
 (0)