Skip to content

Commit dde8866

Browse files
committed
Use className instead of style
1 parent 4f882f8 commit dde8866

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/lib/ui/device/OnlineStatus.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function OnlineStatus(props: OnlineStatusProps): JSX.Element {
2525
function AccountOfflineContent(): JSX.Element {
2626
return (
2727
<>
28-
<OnlineStatusAccountOfflineIcon style={{ fontSize: '24px' }} />
28+
<OnlineStatusAccountOfflineIcon className='seam-font-24' />
2929
<span className='seam-text-danger'>{t.accountOffline}</span>
3030
</>
3131
)
@@ -36,15 +36,15 @@ function AccountOnlineContent(props: { isOnline: boolean }): JSX.Element {
3636
if (isOnline) {
3737
return (
3838
<>
39-
<OnlineStatusOnlineIcon style={{ fontSize: '24px' }} />
39+
<OnlineStatusOnlineIcon className='seam-font-24' />
4040
<span className='seam-status-text'>{t.online}</span>
4141
</>
4242
)
4343
}
4444

4545
return (
4646
<>
47-
<OnlineStatusDeviceOfflineIcon style={{ fontSize: '24px' }} />
47+
<OnlineStatusDeviceOfflineIcon className='seam-font-24' />
4848
<span className='seam-text-danger'>{t.deviceOffline}</span>
4949
</>
5050
)

src/styles/_typography.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
}
1818

1919
@mixin headers {
20+
2021
h1,
2122
h2,
2223
h3,
@@ -55,11 +56,18 @@
5556
}
5657
}
5758

59+
@mixin font-size {
60+
.seam-font-24 {
61+
font-size: 24px;
62+
}
63+
}
64+
5865
@mixin all {
5966
@include headers;
6067
@include caption;
6168
@include danger-text;
6269
@include font-family;
6370
@include defaults;
6471
@include truncated-text;
65-
}
72+
@include font-size;
73+
}

0 commit comments

Comments
 (0)