Skip to content

Commit ed47771

Browse files
authored
Merge pull request #2019 from oasisprotocol/lw/theme-switcher-size
Fix theme switcher icon size
2 parents b2e126f + 3ab4c23 commit ed47771

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

.changelog/2019.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix theme switcher icon size

src/app/components/ThemeSwitcher/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ import { getTargetTheme } from 'styles/theme/utils'
1818

1919
interface Props {}
2020

21-
const getThemesIcons = (t: TFunction) => ({
22-
light: <Sun aria-label={t('theme.lightMode', 'Light mode')} size="24px" />,
23-
dark: <Moon aria-label={t('theme.darkMode', 'Dark mode')} size="24px" />,
24-
system: <System aria-label={t('theme.system', 'System')} size="24px" />,
21+
const getThemesIcons = (t: TFunction, size?: string) => ({
22+
light: <Sun aria-label={t('theme.lightMode', 'Light mode')} size={size} />,
23+
dark: <Moon aria-label={t('theme.darkMode', 'Dark mode')} size={size} />,
24+
system: <System aria-label={t('theme.system', 'System')} size={size} />,
2525
})
2626

2727
export const ThemeSwitcher = memo((props: Props) => {
@@ -52,7 +52,7 @@ export const ThemeSelect = () => {
5252
const { t } = useTranslation()
5353
const theme = useSelector(selectTheme)
5454
const dispatch = useDispatch()
55-
const icons = getThemesIcons(t)
55+
const icons = getThemesIcons(t, '24px')
5656
const themeOptions: { value: 'dark' | 'light' | 'system'; label: string }[] = [
5757
{
5858
value: 'light',

src/app/pages/StakingPage/Features/DelegationList/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ export const DelegationList = memo((props: Props) => {
154154
noHeader={true}
155155
noDataComponent={
156156
type === 'active'
157-
? t('account.emptyActiveDelegationsList', 'There are currently no active delegations.')
157+
? t(
158+
'account.emptyActiveDelegationsList',
159+
'There are currently no active delegations for this account.',
160+
)
158161
: t('account.emptyDebondingDelegationsList', 'There are no debonding delegations for this account.')
159162
}
160163
columns={columns}

src/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"delegate": "Delegate"
1414
},
1515
"addressCopied": "Address copied.",
16-
"emptyActiveDelegationsList": "There are currently no active delegations.",
16+
"emptyActiveDelegationsList": "There are currently no active delegations for this account.",
1717
"emptyDebondingDelegationsList": "There are no debonding delegations for this account.",
1818
"loading": "Loading account",
1919
"loadingError": "Couldn't load account.",

0 commit comments

Comments
 (0)