1
1
import { AddIcon , ChevronDownIcon , EarthGlobeIcon } from '@sanity/icons'
2
2
import {
3
3
Box ,
4
- // eslint-disable-next-line no-restricted-imports
5
- Button ,
6
4
type ButtonMode ,
7
5
Card ,
8
6
Container ,
@@ -17,8 +15,8 @@ import {AnimatePresence, motion} from 'framer-motion'
17
15
import { type MouseEventHandler , useCallback , useEffect , useMemo , useRef , useState } from 'react'
18
16
import { type SearchParam , useRouter } from 'sanity/router'
19
17
20
- import { Button as StudioButton , Tooltip } from '../../../../ui-components'
21
- import { Button as UIButton } from '../../../../ui-components/button/Button'
18
+ import { Tooltip } from '../../../../ui-components'
19
+ import { Button } from '../../../../ui-components/button/Button'
22
20
import { CalendarFilter } from '../../../components/inputs/DateFilters/calendar/CalendarFilter'
23
21
import { useTranslation } from '../../../i18n'
24
22
import { usePerspective } from '../../../perspective/usePerspective'
@@ -50,8 +48,7 @@ import {DateFilterButton, ReleaseCalendarFilterDay} from './ReleaseCalendarFilte
50
48
import { releasesOverviewColumnDefs } from './ReleasesOverviewColumnDefs'
51
49
import { useTimezoneAdjustedDateTimeRange } from './useTimezoneAdjustedDateTimeRange'
52
50
53
- const MotionStudioButton = motion . create ( StudioButton )
54
- const MotionUiButton = motion . create ( Button )
51
+ const MotionButton = motion . create ( Button )
55
52
56
53
const DATE_SEARCH_PARAM_VALUE_FORMAT = 'yyyy-MM-dd'
57
54
@@ -205,7 +202,7 @@ export function ReleasesOverview() {
205
202
}
206
203
return (
207
204
< AnimatePresence >
208
- < MotionStudioButton
205
+ < MotionButton
209
206
{ ...groupModeButtonBaseProps }
210
207
key = "open-group"
211
208
onClick = { handleReleaseGroupModeChange }
@@ -219,7 +216,7 @@ export function ReleasesOverview() {
219
216
placement = "bottom"
220
217
>
221
218
< div >
222
- < MotionUiButton
219
+ < MotionButton
223
220
{ ...groupModeButtonBaseProps }
224
221
key = "archived-group"
225
222
disabled = { groupModeButtonBaseProps . disabled || ! archivedReleases . length }
@@ -252,7 +249,7 @@ export function ReleasesOverview() {
252
249
253
250
const createReleaseButton = useMemo (
254
251
( ) => (
255
- < UIButton
252
+ < Button
256
253
icon = { AddIcon }
257
254
disabled = {
258
255
isPendingGuardResponse ||
@@ -262,7 +259,7 @@ export function ReleasesOverview() {
262
259
}
263
260
onClick = { handleOnClickCreateRelease }
264
261
text = { tCore ( 'release.action.create-new' ) }
265
- paddingY = { 3 }
262
+ size = "large"
266
263
tooltipProps = { {
267
264
disabled : hasCreatePermission === true ,
268
265
content : tCore ( 'release.action.permission.error' ) ,
@@ -361,7 +358,7 @@ export function ReleasesOverview() {
361
358
{ showCalendar && renderCalendarFilter }
362
359
< Flex direction = "column" flex = { 1 } style = { { position : 'relative' } } >
363
360
< Card flex = "none" padding = { 3 } >
364
- < Flex align = "flex-start " flex = { 1 } gap = { 3 } >
361
+ < Flex align = "center " flex = { 1 } gap = { 3 } >
365
362
< Inline >
366
363
{ ! showCalendar && < CalendarPopover content = { renderCalendarFilter } /> }
367
364
< Stack padding = { 2 } space = { 4 } >
@@ -384,7 +381,7 @@ export function ReleasesOverview() {
384
381
icon = { EarthGlobeIcon }
385
382
iconRight = { ChevronDownIcon }
386
383
mode = "bleed"
387
- padding = { 2 }
384
+ size = "large"
388
385
text = { `${ timeZone . abbreviation } (${ timeZone . namePretty } )` }
389
386
onClick = { dialogTimeZoneShow }
390
387
/>
0 commit comments