chore: update prettier setting
This commit is contained in:
@@ -26,9 +26,7 @@ export default function ExpiredTip() {
|
||||
return (
|
||||
<Styled>
|
||||
<div className="title">Magic link expired</div>
|
||||
<p className="desc">
|
||||
Go back to your original Rustchat tab and request a new magic link.
|
||||
</p>
|
||||
<p className="desc">Go back to your original Rustchat tab and request a new magic link.</p>
|
||||
<p className="desc">You can close this window now.</p>
|
||||
</Styled>
|
||||
);
|
||||
|
||||
@@ -8,19 +8,14 @@ import { setAuthData } from "../../app/slices/auth.data";
|
||||
|
||||
import Input from "../../common/component/styled/Input";
|
||||
import Button from "../../common/component/styled/Button";
|
||||
import {
|
||||
useLoginMutation,
|
||||
useCheckInviteTokenValidMutation,
|
||||
} from "../../app/services/auth";
|
||||
import { useLoginMutation, useCheckInviteTokenValidMutation } from "../../app/services/auth";
|
||||
import toast from "react-hot-toast";
|
||||
import ExpiredTip from "./ExpiredTip";
|
||||
|
||||
export default function RegWithUsername() {
|
||||
const { token } = useParams();
|
||||
const [
|
||||
checkTokenInvalid,
|
||||
{ data: isTokenValid, isLoading: checkingToken },
|
||||
] = useCheckInviteTokenValidMutation();
|
||||
const [checkTokenInvalid, { data: isTokenValid, isLoading: checkingToken }] =
|
||||
useCheckInviteTokenValidMutation();
|
||||
const [login, { isLoading, error, isSuccess, data }] = useLoginMutation();
|
||||
// const navigateTo = useNavigate();
|
||||
const dispatch = useDispatch();
|
||||
@@ -57,7 +52,7 @@ export default function RegWithUsername() {
|
||||
login({
|
||||
token,
|
||||
username,
|
||||
type: "magiclink",
|
||||
type: "magiclink"
|
||||
});
|
||||
// sendMagicLink(email);
|
||||
};
|
||||
@@ -74,8 +69,8 @@ export default function RegWithUsername() {
|
||||
<div className="tips">
|
||||
<h2 className="title">What’s your name</h2>
|
||||
<span className="desc">
|
||||
Enter a name or handle so people know how you’d like to be called.
|
||||
Your name will only be visible to others in spaces you joined.
|
||||
Enter a name or handle so people know how you’d like to be called. Your name will only be
|
||||
visible to others in spaces you joined.
|
||||
</span>
|
||||
</div>
|
||||
<form onSubmit={handleLogin}>
|
||||
|
||||
@@ -7,8 +7,7 @@ const StyledWrapper = styled.div`
|
||||
.form {
|
||||
max-width: 440px;
|
||||
padding: 36px 40px 32px 40px;
|
||||
box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1),
|
||||
0px 2px 4px -2px rgba(16, 24, 40, 0.06);
|
||||
box-shadow: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
|
||||
border-radius: 12px;
|
||||
.tips {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user