mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-02-19 01:55:48 -05:00
fix: logo doesn't get loaded correctly
This commit is contained in:
parent
a47d080657
commit
9ba2b4c82c
2 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "node .next/standalone/server.js",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"format": "prettier --end-of-line=auto --write \"src/**/*.ts*\""
|
"format": "prettier --end-of-line=auto --write \"src/**/*.ts*\""
|
||||||
},
|
},
|
||||||
|
|
|
@ -17,6 +17,7 @@ import { Tb2Fa } from "react-icons/tb";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
import * as yup from "yup";
|
import * as yup from "yup";
|
||||||
import Meta from "../../components/Meta";
|
import Meta from "../../components/Meta";
|
||||||
|
import LanguagePicker from "../../components/account/LanguagePicker";
|
||||||
import ThemeSwitcher from "../../components/account/ThemeSwitcher";
|
import ThemeSwitcher from "../../components/account/ThemeSwitcher";
|
||||||
import showEnableTotpModal from "../../components/account/showEnableTotpModal";
|
import showEnableTotpModal from "../../components/account/showEnableTotpModal";
|
||||||
import useTranslate from "../../hooks/useTranslate.hook";
|
import useTranslate from "../../hooks/useTranslate.hook";
|
||||||
|
@ -24,7 +25,6 @@ import useUser from "../../hooks/user.hook";
|
||||||
import authService from "../../services/auth.service";
|
import authService from "../../services/auth.service";
|
||||||
import userService from "../../services/user.service";
|
import userService from "../../services/user.service";
|
||||||
import toast from "../../utils/toast.util";
|
import toast from "../../utils/toast.util";
|
||||||
import LanguagePicker from "../../components/account/LanguagePicker";
|
|
||||||
|
|
||||||
const Account = () => {
|
const Account = () => {
|
||||||
const { user, refreshUser } = useUser();
|
const { user, refreshUser } = useUser();
|
||||||
|
@ -181,7 +181,7 @@ const Account = () => {
|
||||||
</Tabs.List>
|
</Tabs.List>
|
||||||
|
|
||||||
<Tabs.Panel value="totp" pt="xs">
|
<Tabs.Panel value="totp" pt="xs">
|
||||||
{user!.totpVerified ? (
|
{user?.totpVerified ? (
|
||||||
<>
|
<>
|
||||||
<form
|
<form
|
||||||
onSubmit={disableTotpForm.onSubmit((values) => {
|
onSubmit={disableTotpForm.onSubmit((values) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue