Skip to content

Commit

Permalink
Remove unused import and update popover content
Browse files Browse the repository at this point in the history
Removed the unused `FluentMdl2Health` import to clean up the code. Additionally, enhanced the popover content by including a link to the CHANGELOG for better user information on updates.
  • Loading branch information
SquirrelDevelopper committed Nov 14, 2024
1 parent 4311d94 commit 92c8b33
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions client/src/components/HeaderComponents/UpdateAvailableWidget.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FluentMdl2Health, UpdateLine } from '@/components/Icons/CustomIcons';
import { UpdateLine } from '@/components/Icons/CustomIcons';
import { useEmotionCss } from '@ant-design/use-emotion-css';
import { useModel } from '@umijs/max';
import { Avatar, Badge, Popover, Spin, Typography } from 'antd';
Expand Down Expand Up @@ -46,12 +46,20 @@ export const UpdateAvailableWidget: React.FC = React.memo(() => {
return (
<Popover
content={
<Typography.Link
href="https://squirrelserversmanager.io/docs/quickstart#to-update-ssm-simply-run"
target="_blank"
>
A new version is available: {currentUser.settings.updateAvailable}
</Typography.Link>
<>
<Typography.Link
href="https://squirrelserversmanager.io/docs/quickstart#to-update-ssm-simply-run"
target="_blank"
>
A new version is available: {currentUser.settings.updateAvailable}
</Typography.Link>
<Typography.Link
href="https://github.com/SquirrelCorporation/SquirrelServersManager/blob/master/CHANGELOG.md"
target="_blank"
>
(CHANGELOG)
</Typography.Link>
</>
}
>
<Badge dot={true} offset={[0, 10]}>
Expand Down

0 comments on commit 92c8b33

Please sign in to comment.