diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx
index 4a45e3b..39397d2 100644
--- a/src/renderer/src/App.tsx
+++ b/src/renderer/src/App.tsx
@@ -37,7 +37,6 @@ import { driver } from 'driver.js'
import 'driver.js/dist/driver.css'
let navigate: NavigateFunction
-const narrowWidth = platform === 'darwin' ? 70 : 60
const App: React.FC = () => {
const { appConfig, patchAppConfig } = useAppConfig()
@@ -62,6 +61,7 @@ const App: React.FC = () => {
'substore'
]
} = appConfig || {}
+ const narrowWidth = platform === 'darwin' ? 70 : 60
const [order, setOrder] = useState(siderOrder)
const [siderWidthValue, setSiderWidthValue] = useState(siderWidth)
const siderWidthValueRef = useRef(siderWidthValue)
@@ -200,6 +200,7 @@ const App: React.FC = () => {
{platform !== 'darwin' && (
)}
+
diff --git a/src/renderer/src/components/updater/updater-button.tsx b/src/renderer/src/components/updater/updater-button.tsx
index 104feaf..d3da9e0 100644
--- a/src/renderer/src/components/updater/updater-button.tsx
+++ b/src/renderer/src/components/updater/updater-button.tsx
@@ -5,9 +5,15 @@ import React, { useState } from 'react'
import useSWR from 'swr'
import UpdaterModal from './updater-modal'
import { platform } from '@renderer/utils/init'
+import { MdNewReleases } from 'react-icons/md'
-const UpdaterButton: React.FC = () => {
+interface Props {
+ iconOnly?: boolean
+}
+
+const UpdaterButton: React.FC
= (props) => {
const { appConfig } = useAppConfig()
+ const { iconOnly } = props
const { autoCheckUpdate, useWindowFrame = false } = appConfig || {}
const [openModal, setOpenModal] = useState(false)
const { data: latest } = useSWR(
@@ -30,16 +36,31 @@ const UpdaterButton: React.FC = () => {
}}
/>
)}
-
+ {iconOnly ? (
+
+ ) : (
+
+ )}
>
)
}