} from "lemmy-js-client";
import { joinLemmyUrl } from "../../config";
import { mdToHtml } from "../../markdown";
-import { FirstLoadService, I18NextService, UserService } from "../../services";
+import { I18NextService, UserService } from "../../services";
import { HttpService, RequestState } from "../../services/HttpService";
import { toast } from "../../toast";
import { HtmlTags } from "../common/html-tags";
super(props, context);
this.handleAnswerChange = this.handleAnswerChange.bind(this);
-
- FirstLoadService.isFirstLoad;
}
async componentDidMount() {
registerForm() {
const siteView = this.state.siteRes.site_view;
return (
- <form onSubmit={linkEvent(this, this.handleRegisterSubmit)}>
- <h5>{this.titleName(siteView)}</h5>
+ <form
+ className="was-validated"
+ onSubmit={linkEvent(this, this.handleRegisterSubmit)}
+ >
+ <h1 className="h4 mb-4">{this.titleName(siteView)}</h1>
{this.isLemmyMl && (
<div className="mb-3 row">
// Only log them in if a jwt was set
if (data.jwt) {
- UserService.Instance.login(data);
+ UserService.Instance.login({
+ res: data,
+ });
const site = await HttpService.client.getSite({ auth: myAuth() });