chore: change setting view to setting general view

This commit is contained in:
Tianzhou Chen
2023-05-21 18:08:36 +08:00
parent c6b4c7f7f8
commit 86c6abe24c
6 changed files with 11 additions and 11 deletions

View File

@ -12,7 +12,7 @@ import LocaleSelector from "./LocaleSelector";
import ThemeSelector from "./ThemeSelector";
import OpenAIApiConfigView from "./OpenAIApiConfigView";
const SettingView = () => {
const SettingGeneralView = () => {
const { t } = useTranslation();
const { data: session } = useSession();
@ -84,4 +84,4 @@ const SettingView = () => {
);
};
export default SettingView;
export default SettingGeneralView;

View File

@ -65,7 +65,7 @@ const SubscriptionHistoryTable = () => {
</td>
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-0">
<a href={subscription.receipt} target="_blank" className="text-indigo-600 hover:text-indigo-900">
{t("setting.billing.view-receipt")}
{t("setting.subscription.view-receipt")}
</a>
</td>
</tr>

View File

@ -71,8 +71,8 @@
"n-question-per-month": "{{count}} quota / month",
"early-bird-checkout": "Early bird discount, 50% off for 1 year"
},
"billing": {
"self": "Billing",
"subscription": {
"self": "Subscription",
"view-receipt": "View receipt"
},
"account": {

View File

@ -69,8 +69,8 @@
"n-question-per-month": "{{count}} Cuota / mes",
"early-bird-checkout": "Descuento por reserva anticipada, 50 % de descuento durante 1 año"
},
"billing": {
"self": "Facturación",
"subscription": {
"self": "Suscripción",
"view-receipt": "Ver recibo"
},
"account": {

View File

@ -71,8 +71,8 @@
"n-question-per-month": "{{count}} 点额度 / 月",
"early-bird-checkout": "早鸟优惠5 折购买 1 年"
},
"billing": {
"self": "计费",
"subscription": {
"self": "订阅",
"view-receipt": "查看收据"
},
"account": {

View File

@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next";
import Link from "next/link";
import { Dialog, Transition } from "@headlessui/react";
import { ArrowUturnLeftIcon, Bars3Icon, Cog6ToothIcon, XMarkIcon, CreditCardIcon } from "@heroicons/react/24/outline";
import SettingView from "../../components/SettingView";
import SettingGeneralView from "../../components/SettingGeneralView";
import StripeCheckPaymentBanner from "../../components/StripeCheckPaymentBanner";
function classNames(...classes: string[]) {
@ -175,7 +175,7 @@ const SettingPage: NextPage = () => {
<main className="lg:pl-72">
{router.query.session_id && <StripeCheckPaymentBanner sessionId={router.query.session_id as string} />}
<div className="px-4 sm:px-6 lg:px-8 dark:bg-zinc-800">
<SettingView />
<SettingGeneralView />
</div>
</main>
</div>