renamed "AccentSubmitButton" to "Button"
This commit is contained in:
parent
71678ba9dd
commit
8505667f73
|
@ -1,4 +1,4 @@
|
||||||
import AccentSubmitButton from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
import TextInput from "@/components/TextInput";
|
import TextInput from "@/components/TextInput";
|
||||||
import CenteredForm from "@/layouts/CenteredForm";
|
import CenteredForm from "@/layouts/CenteredForm";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
@ -90,7 +90,7 @@ export default function ResetPassword() {
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<AccentSubmitButton
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
intent="accent"
|
intent="accent"
|
||||||
className="mt-2"
|
className="mt-2"
|
||||||
|
@ -98,7 +98,7 @@ export default function ResetPassword() {
|
||||||
loading={submitLoader}
|
loading={submitLoader}
|
||||||
>
|
>
|
||||||
{t("update_password")}
|
{t("update_password")}
|
||||||
</AccentSubmitButton>
|
</Button>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import AccentSubmitButton from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
import TextInput from "@/components/TextInput";
|
import TextInput from "@/components/TextInput";
|
||||||
import CenteredForm from "@/layouts/CenteredForm";
|
import CenteredForm from "@/layouts/CenteredForm";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
@ -86,7 +86,7 @@ export default function Forgot() {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AccentSubmitButton
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
intent="accent"
|
intent="accent"
|
||||||
className="mt-2"
|
className="mt-2"
|
||||||
|
@ -94,7 +94,7 @@ export default function Forgot() {
|
||||||
loading={submitLoader}
|
loading={submitLoader}
|
||||||
>
|
>
|
||||||
{t("send_reset_link")}
|
{t("send_reset_link")}
|
||||||
</AccentSubmitButton>
|
</Button>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<p>{t("reset_email_sent_desc")}</p>
|
<p>{t("reset_email_sent_desc")}</p>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import AccentSubmitButton from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
import TextInput from "@/components/TextInput";
|
import TextInput from "@/components/TextInput";
|
||||||
import CenteredForm from "@/layouts/CenteredForm";
|
import CenteredForm from "@/layouts/CenteredForm";
|
||||||
import { signIn } from "next-auth/react";
|
import { signIn } from "next-auth/react";
|
||||||
|
@ -133,7 +133,7 @@ export default function Login({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<AccentSubmitButton
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
size="full"
|
size="full"
|
||||||
intent="accent"
|
intent="accent"
|
||||||
|
@ -141,7 +141,7 @@ export default function Login({
|
||||||
loading={submitLoader}
|
loading={submitLoader}
|
||||||
>
|
>
|
||||||
{t("login")}
|
{t("login")}
|
||||||
</AccentSubmitButton>
|
</Button>
|
||||||
|
|
||||||
{availableLogins.buttonAuths.length > 0 ? (
|
{availableLogins.buttonAuths.length > 0 ? (
|
||||||
<div className="divider my-1">{t("or_continue_with")}</div>
|
<div className="divider my-1">{t("or_continue_with")}</div>
|
||||||
|
@ -156,7 +156,7 @@ export default function Login({
|
||||||
availableLogins.buttonAuths.forEach((value: any, index: any) => {
|
availableLogins.buttonAuths.forEach((value: any, index: any) => {
|
||||||
Buttons.push(
|
Buttons.push(
|
||||||
<React.Fragment key={index}>
|
<React.Fragment key={index}>
|
||||||
<AccentSubmitButton
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => loginUserButton(value.method)}
|
onClick={() => loginUserButton(value.method)}
|
||||||
size="full"
|
size="full"
|
||||||
|
@ -168,7 +168,7 @@ export default function Login({
|
||||||
<i className={"bi-" + value.name.toLowerCase()}></i>
|
<i className={"bi-" + value.name.toLowerCase()}></i>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
{value.name}
|
{value.name}
|
||||||
</AccentSubmitButton>
|
</Button>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
|
@ -5,7 +5,7 @@ import { signIn } from "next-auth/react";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import CenteredForm from "@/layouts/CenteredForm";
|
import CenteredForm from "@/layouts/CenteredForm";
|
||||||
import TextInput from "@/components/TextInput";
|
import TextInput from "@/components/TextInput";
|
||||||
import AccentSubmitButton from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
import { getLogins } from "./api/v1/logins";
|
import { getLogins } from "./api/v1/logins";
|
||||||
import { GetServerSideProps, InferGetServerSidePropsType } from "next";
|
import { GetServerSideProps, InferGetServerSidePropsType } from "next";
|
||||||
import { getToken } from "next-auth/jwt";
|
import { getToken } from "next-auth/jwt";
|
||||||
|
@ -125,7 +125,7 @@ export default function Register({
|
||||||
availableLogins.buttonAuths.forEach((value: any, index: any) => {
|
availableLogins.buttonAuths.forEach((value: any, index: any) => {
|
||||||
Buttons.push(
|
Buttons.push(
|
||||||
<React.Fragment key={index}>
|
<React.Fragment key={index}>
|
||||||
<AccentSubmitButton
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => loginUserButton(value.method)}
|
onClick={() => loginUserButton(value.method)}
|
||||||
size="full"
|
size="full"
|
||||||
|
@ -137,7 +137,7 @@ export default function Register({
|
||||||
<i className={"bi-" + value.name.toLowerCase()}></i>
|
<i className={"bi-" + value.name.toLowerCase()}></i>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
{value.name}
|
{value.name}
|
||||||
</AccentSubmitButton>
|
</Button>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -270,7 +270,7 @@ export default function Register({
|
||||||
</div>
|
</div>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
|
|
||||||
<AccentSubmitButton
|
<Button
|
||||||
type="submit"
|
type="submit"
|
||||||
loading={submitLoader}
|
loading={submitLoader}
|
||||||
intent="accent"
|
intent="accent"
|
||||||
|
@ -278,7 +278,7 @@ export default function Register({
|
||||||
data-testid="register-button"
|
data-testid="register-button"
|
||||||
>
|
>
|
||||||
{t("sign_up")}
|
{t("sign_up")}
|
||||||
</AccentSubmitButton>
|
</Button>
|
||||||
|
|
||||||
{availableLogins.buttonAuths.length > 0 ? (
|
{availableLogins.buttonAuths.length > 0 ? (
|
||||||
<div className="divider my-1">{t("or_continue_with")}</div>
|
<div className="divider my-1">{t("or_continue_with")}</div>
|
||||||
|
|
|
@ -4,7 +4,7 @@ import { toast } from "react-hot-toast";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import CenteredForm from "@/layouts/CenteredForm";
|
import CenteredForm from "@/layouts/CenteredForm";
|
||||||
import { Plan } from "@/types/global";
|
import { Plan } from "@/types/global";
|
||||||
import AccentSubmitButton from "@/components/ui/Button";
|
import Button from "@/components/ui/Button";
|
||||||
import getServerSideProps from "@/lib/client/getServerSideProps";
|
import getServerSideProps from "@/lib/client/getServerSideProps";
|
||||||
import { Trans, useTranslation } from "next-i18next";
|
import { Trans, useTranslation } from "next-i18next";
|
||||||
import useAccountStore from "@/store/account";
|
import useAccountStore from "@/store/account";
|
||||||
|
@ -128,7 +128,7 @@ export default function Subscribe() {
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<AccentSubmitButton
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
intent="accent"
|
intent="accent"
|
||||||
size="full"
|
size="full"
|
||||||
|
@ -136,7 +136,7 @@ export default function Subscribe() {
|
||||||
loading={submitLoader}
|
loading={submitLoader}
|
||||||
>
|
>
|
||||||
{t("complete_subscription")}
|
{t("complete_subscription")}
|
||||||
</AccentSubmitButton>
|
</Button>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
onClick={() => signOut()}
|
onClick={() => signOut()}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue