Skip to content

Commit 360b0b7

Browse files
committed
use h3
1 parent 20d3449 commit 360b0b7

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

frontend/src/ts/components/pages/login/Login.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
showNoticeNotification,
1515
showErrorNotification,
1616
} from "../../../stores/notifications";
17+
import { H3 } from "../../common/Headers";
1718
import { Separator } from "../../common/Separator";
1819

1920
export function Login(): JSXElement {
@@ -73,10 +74,13 @@ export function Login(): JSXElement {
7374

7475
return (
7576
<div class="grid w-full grid-cols-1 justify-center gap-2 sm:w-80">
76-
<div class="inline-flex items-baseline text-sub">
77-
<i class="fas fa-sign-in-alt mr-[0.5em]"></i>
78-
login
79-
</div>
77+
<H3
78+
text="login"
79+
fa={{
80+
icon: "fa-sign-in-alt",
81+
}}
82+
class="p-0"
83+
/>
8084
<div class="grid grid-cols-2 gap-4">
8185
<button
8286
type="button"

frontend/src/ts/components/pages/login/Register.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {
2727
import { isDevEnvironment } from "../../../utils/misc";
2828
import { remoteValidation } from "../../../utils/remote-validation";
2929
import TypoList from "../../../utils/typo-list";
30+
import { H3 } from "../../common/Headers";
3031
import { ValidatedInput } from "../../ui/ValidatedInput";
3132

3233
let disposableEmailModule: typeof import("disposable-email-domains-js") | null =
@@ -109,10 +110,13 @@ export function Register(): JSXElement {
109110

110111
return (
111112
<div class="grid w-full grid-cols-1 justify-center gap-2 sm:w-80">
112-
<div class="inline-flex items-baseline text-sub">
113-
<i class="fas fa-user-plus mr-[0.5em]"></i>
114-
register
115-
</div>
113+
<H3
114+
text="register"
115+
fa={{
116+
icon: "fa-user-plus",
117+
}}
118+
class="p-0"
119+
/>
116120
<form
117121
action=""
118122
// oxlint-disable-next-line react/no-unknown-property

0 commit comments

Comments
 (0)