Skip to content

Commit

Permalink
chore: adjust the tooltip title for toggling the theme
Browse files Browse the repository at this point in the history
  • Loading branch information
w2xi committed Oct 6, 2024
1 parent 9e04c0f commit 3cbfae1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function HeaderComponent() {
{collapsed ? <MenuUnfoldOutlined /> : <MenuFoldOutlined />}
</span>
<div className="actions">
<Tooltip title={theme === 'dark' ? 'light mode' : 'dark mode'}>
<Tooltip title={ 'Switch to ' + `${theme === 'dark' ? 'light' : 'dark'}` + ' theme' }>
<span className="action-btn" onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}>
{theme === 'dark' ? <SunOutlined /> : <MoonOutlined />}
</span>
Expand Down

0 comments on commit 3cbfae1

Please sign in to comment.