Skip to content

Commit

Permalink
feat: use the new RefreshIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Oct 18, 2023
1 parent de9fb02 commit 4fd266c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@
"watch": "pkg-utils watch --strict"
},
"dependencies": {
"@sanity/icons": "^2.4.1",
"@sanity/incompatible-plugin": "^1.0.0",
"@sanity/ui": "^1.1.0",
"framer-motion": "^10.15.1",
"@sanity/icons": "^2.6.0",
"@sanity/incompatible-plugin": "^1.0.4",
"@sanity/ui": "^1.8.2",
"framer-motion": "^10.16.4",
"usehooks-ts": "2.9.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/Toolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable react/jsx-no-bind */
import {CopyIcon, LaunchIcon, MobileDeviceIcon, UndoIcon} from '@sanity/icons'
import {CopyIcon, LaunchIcon, MobileDeviceIcon, RefreshIcon} from '@sanity/icons'
import {Box, Button, Card, Flex, Text, Tooltip, useToast} from '@sanity/ui'
import React, {useRef} from 'react'
import {useCopyToClipboard} from 'usehooks-ts'
Expand Down Expand Up @@ -93,7 +93,7 @@ export function Toolbar(props: ToolbarProps) {
mode="bleed"
fontSize={[1]}
padding={2}
icon={<UndoIcon style={{transform: 'rotate(90deg) scaleY(-1)'}} />}
icon={RefreshIcon}
loading={reloading}
aria-label="Reload"
onClick={() => handleReload()}
Expand Down

0 comments on commit 4fd266c

Please sign in to comment.