Skip to content

Commit c8e9cf4

Browse files
committed
replace sx with tailwind or primer components
Signed-off-by: Adam Setch <[email protected]>
1 parent 1d0284a commit c8e9cf4

32 files changed

+372
-401
lines changed

src/renderer/components/Sidebar.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ export const Sidebar: FC = () => {
6969
return getNotificationCount(notifications);
7070
}, [notifications]);
7171

72-
// const sidebarButtonStyle = { color: 'white' };
73-
7472
return (
7573
<Stack
76-
className="fixed left-sidebar -ml-sidebar w-sidebar h-full bg-gitify-sidebar text-white"
74+
className="fixed left-sidebar -ml-sidebar w-sidebar h-full bg-gitify-sidebar [&_svg]:text-white"
7775
direction="vertical"
7876
justify="space-between"
7977
>
@@ -102,7 +100,6 @@ export const Sidebar: FC = () => {
102100
icon={BellIcon}
103101
onClick={() => openGitHubNotifications(primaryAccountHostname)}
104102
size="small"
105-
// sx={sidebarButtonStyle}
106103
tooltipDirection="e"
107104
unsafeDisableTooltip={false}
108105
variant={notificationsCount > 0 ? 'primary' : 'invisible'}
@@ -116,7 +113,6 @@ export const Sidebar: FC = () => {
116113
icon={FilterIcon}
117114
onClick={() => toggleFilters()}
118115
size="small"
119-
// sx={sidebarButtonStyle}
120116
tooltipDirection="e"
121117
unsafeDisableTooltip={false}
122118
variant={hasActiveFilters(settings) ? 'primary' : 'invisible'}
@@ -129,7 +125,6 @@ export const Sidebar: FC = () => {
129125
icon={IssueOpenedIcon}
130126
onClick={() => openGitHubIssues(primaryAccountHostname)}
131127
size="small"
132-
// sx={sidebarButtonStyle}
133128
tooltipDirection="e"
134129
unsafeDisableTooltip={false}
135130
variant="invisible"
@@ -141,7 +136,6 @@ export const Sidebar: FC = () => {
141136
icon={GitPullRequestIcon}
142137
onClick={() => openGitHubPulls(primaryAccountHostname)}
143138
size="small"
144-
// sx={sidebarButtonStyle}
145139
tooltipDirection="e"
146140
unsafeDisableTooltip={false}
147141
variant="invisible"
@@ -165,7 +159,6 @@ export const Sidebar: FC = () => {
165159
loading={status === 'loading'}
166160
onClick={() => refreshNotifications()}
167161
size="small"
168-
// sx={sidebarButtonStyle}
169162
tooltipDirection="e"
170163
unsafeDisableTooltip={false}
171164
variant="invisible"
@@ -177,7 +170,6 @@ export const Sidebar: FC = () => {
177170
icon={GearIcon}
178171
onClick={() => toggleSettings()}
179172
size="small"
180-
// sx={sidebarButtonStyle}
181173
tooltipDirection="e"
182174
unsafeDisableTooltip={false}
183175
variant="invisible"
@@ -192,7 +184,6 @@ export const Sidebar: FC = () => {
192184
icon={XCircleIcon}
193185
onClick={() => quitApp()}
194186
size="small"
195-
// sx={sidebarButtonStyle}
196187
tooltipDirection="e"
197188
unsafeDisableTooltip={false}
198189
variant="invisible"

src/renderer/components/__snapshots__/Sidebar.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/fields/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const Checkbox: FC<ICheckbox> = ({
3333
>
3434
<input
3535
checked={props.checked}
36-
className="size-2 rounded-sm cursor-pointer"
36+
className="size-4 rounded-sm cursor-pointer"
3737
data-testid={`checkbox-${props.name}`}
3838
disabled={props.disabled}
3939
id={props.name}

src/renderer/components/fields/RadioGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export const RadioGroup: FC<IRadioGroup> = (props: IRadioGroup) => {
3737
>
3838
<input
3939
checked={item.value === props.value}
40-
className="size-2 cursor-pointer"
40+
className="size-4 cursor-pointer"
4141
data-testid={name}
4242
id={name}
4343
name={props.name}

src/renderer/components/fields/__snapshots__/Checkbox.test.tsx.snap

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

src/renderer/components/fields/__snapshots__/RadioGroup.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/filters/SearchFilterSuggestions.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ export const SearchFilterSuggestions: FC<SearchFilterSuggestionsProps> = ({
3636
const beginsWithKnownQualifier = base.some((q) => lower.startsWith(q.prefix));
3737

3838
return (
39-
<Popover open>
40-
<Popover.Content
41-
// sx={{ p: 2, mt: 2, width: '100%' }}
42-
>
39+
<Popover caret="top-left" open>
40+
<Popover.Content className="p-2 mt-2" height="auto" width="auto">
4341
<Stack direction="vertical" gap="condensed">
4442
{suggestions.length > 0 &&
4543
suggestions.map((q) => (

0 commit comments

Comments
 (0)