chore: update prettier setting

This commit is contained in:
zerosoul
2022-06-12 15:30:14 +08:00
parent 14b4678d9e
commit 516794d352
209 changed files with 2435 additions and 4588 deletions
+1 -3
View File
@@ -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>
);
+6 -11
View File
@@ -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">Whats your name</h2>
<span className="desc">
Enter a name or handle so people know how youd 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 youd like to be called. Your name will only be
visible to others in spaces you joined.
</span>
</div>
<form onSubmit={handleLogin}>
+1 -2
View File
@@ -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;