1
- import { Box , Stack , useToast } from '@sanity/ui'
1
+ import { Box , useToast } from '@sanity/ui'
2
2
import { type ReactNode , useCallback , useEffect , useRef } from 'react'
3
3
import { SANITY_VERSION } from 'sanity'
4
4
import semver from 'semver'
@@ -10,7 +10,7 @@ import {checkForLatestVersions} from './checkForLatestVersions'
10
10
11
11
// How often to to check last timestamp. at 30 min, should fetch new version
12
12
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
14
14
15
15
const currentPackageVersions : Record < string , string > = {
16
16
sanity : SANITY_VERSION ,
@@ -32,17 +32,15 @@ export function PackageVersionStatusProvider({children}: {children: ReactNode})
32
32
id : 'new-package-available' ,
33
33
title : t ( 'package-version.new-package-available.title' ) ,
34
34
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 >
46
44
) ,
47
45
closable : true ,
48
46
status : 'info' ,
0 commit comments