Skip to content

Commit b9e98e5

Browse files
committed
feat: primer v37 upgrade
Signed-off-by: Adam Setch <[email protected]>
1 parent a05ab6b commit b9e98e5

File tree

3 files changed

+789
-895
lines changed

3 files changed

+789
-895
lines changed

src/renderer/primer-experimental.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
// to keep existing import statements working after upgrade to v37.
33
// TODO - remove this file after all experimental components have been migrated
44
declare module '@primer/react/experimental' {
5-
export { Banner } from '@primer/react/lib-esm/Banner';
5+
export { Banner } from '@primer/react/lib-esm/Banner';
66
}

src/renderer/routes/Accounts.tsx

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -146,48 +146,41 @@ export const AccountsRoute: FC = () => {
146146
>
147147
<div className="pl-4 pb-2 text-xs">
148148
<Stack direction="vertical" gap="condensed">
149-
<div hidden={!account.user.name}>
150-
<Stack
151-
align="center"
152-
direction="horizontal"
153-
gap="condensed"
154-
>
155-
<PersonIcon />
156-
<Text>{account.user?.name}</Text>
157-
</Stack>
158-
</div>
149+
<Stack
150+
align="center"
151+
direction="horizontal"
152+
gap="condensed"
153+
hidden={!account.user.name}
154+
>
155+
<PersonIcon />
156+
<Text>{account.user?.name}</Text>
157+
</Stack>
159158

160-
<div
159+
<Stack
160+
align="center"
161161
className="cursor-pointer"
162162
data-testid="account-host"
163+
direction="horizontal"
164+
gap="condensed"
163165
onClick={() => openHost(account.hostname)}
164166
title="Open host"
165167
>
166-
<Stack
167-
align="center"
168-
direction="horizontal"
169-
gap="condensed"
170-
>
171-
<PlatformIcon />
172-
<Text>{account.hostname}</Text>
173-
</Stack>
174-
</div>
168+
<PlatformIcon />
169+
<Text>{account.hostname}</Text>
170+
</Stack>
175171

176-
<button type="button"
172+
<Stack
173+
align="center"
177174
className="cursor-pointer"
178175
data-testid="account-developer-settings"
176+
direction="horizontal"
177+
gap="condensed"
179178
onClick={() => openDeveloperSettings(account)}
180179
title="Open developer settings"
181180
>
182-
<Stack
183-
align="center"
184-
direction="horizontal"
185-
gap="condensed"
186-
>
187-
<AuthMethodIcon />
188-
<Text>{account.method}</Text>
189-
</Stack>
190-
</button>
181+
<AuthMethodIcon />
182+
<Text>{account.method}</Text>
183+
</Stack>
191184
</Stack>
192185
</div>
193186

0 commit comments

Comments
 (0)