Skip to content

Commit 1a33125

Browse files
fix: add padding above the "Push to reload" button instead of below (#7464)
* Add padding above the "Push to reload" button instead of below * refactor: remove redundant box --------- Co-authored-by: Carolina Gonzalez <[email protected]>
1 parent daf4ffa commit 1a33125

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

packages/sanity/src/core/studio/packageVersionStatus/PackageVersionStatusProvider.tsx

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Box, Stack, useToast} from '@sanity/ui'
1+
import {Box, useToast} from '@sanity/ui'
22
import {type ReactNode, useCallback, useEffect, useRef} from 'react'
33
import {SANITY_VERSION} from 'sanity'
44
import semver from 'semver'
@@ -10,7 +10,7 @@ import {checkForLatestVersions} from './checkForLatestVersions'
1010

1111
// How often to to check last timestamp. at 30 min, should fetch new version
1212
const REFRESH_INTERVAL = 1000 * 30 // every 30 seconds
13-
const SHOW_TOAST_FREQUENCY = 1000 * 60 * 30 //half hour
13+
const SHOW_TOAST_FREQUENCY = 1000 * 60 * 30 // half hour
1414

1515
const currentPackageVersions: Record<string, string> = {
1616
sanity: SANITY_VERSION,
@@ -32,17 +32,15 @@ export function PackageVersionStatusProvider({children}: {children: ReactNode})
3232
id: 'new-package-available',
3333
title: t('package-version.new-package-available.title'),
3434
description: (
35-
<Stack space={2} paddingBottom={2}>
36-
<Box>
37-
<Button
38-
size="large"
39-
aria-label={t('package-version.new-package-available.reload-button')}
40-
onClick={onClick}
41-
text={t('package-version.new-package-available.reload-button')}
42-
tone={'primary'}
43-
/>
44-
</Box>
45-
</Stack>
35+
<Box paddingTop={2}>
36+
<Button
37+
size="large"
38+
aria-label={t('package-version.new-package-available.reload-button')}
39+
onClick={onClick}
40+
text={t('package-version.new-package-available.reload-button')}
41+
tone={'primary'}
42+
/>
43+
</Box>
4644
),
4745
closable: true,
4846
status: 'info',

0 commit comments

Comments
 (0)