mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-09-28 02:24:49 +08:00
chore: change setting view to setting general view
This commit is contained in:
@ -12,7 +12,7 @@ import LocaleSelector from "./LocaleSelector";
|
|||||||
import ThemeSelector from "./ThemeSelector";
|
import ThemeSelector from "./ThemeSelector";
|
||||||
import OpenAIApiConfigView from "./OpenAIApiConfigView";
|
import OpenAIApiConfigView from "./OpenAIApiConfigView";
|
||||||
|
|
||||||
const SettingView = () => {
|
const SettingGeneralView = () => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const { data: session } = useSession();
|
const { data: session } = useSession();
|
||||||
|
|
||||||
@ -84,4 +84,4 @@ const SettingView = () => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default SettingView;
|
export default SettingGeneralView;
|
@ -65,7 +65,7 @@ const SubscriptionHistoryTable = () => {
|
|||||||
</td>
|
</td>
|
||||||
<td className="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-0">
|
<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">
|
<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>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -71,8 +71,8 @@
|
|||||||
"n-question-per-month": "{{count}} quota / month",
|
"n-question-per-month": "{{count}} quota / month",
|
||||||
"early-bird-checkout": "Early bird discount, 50% off for 1 year"
|
"early-bird-checkout": "Early bird discount, 50% off for 1 year"
|
||||||
},
|
},
|
||||||
"billing": {
|
"subscription": {
|
||||||
"self": "Billing",
|
"self": "Subscription",
|
||||||
"view-receipt": "View receipt"
|
"view-receipt": "View receipt"
|
||||||
},
|
},
|
||||||
"account": {
|
"account": {
|
||||||
|
@ -69,8 +69,8 @@
|
|||||||
"n-question-per-month": "{{count}} Cuota / mes",
|
"n-question-per-month": "{{count}} Cuota / mes",
|
||||||
"early-bird-checkout": "Descuento por reserva anticipada, 50 % de descuento durante 1 año"
|
"early-bird-checkout": "Descuento por reserva anticipada, 50 % de descuento durante 1 año"
|
||||||
},
|
},
|
||||||
"billing": {
|
"subscription": {
|
||||||
"self": "Facturación",
|
"self": "Suscripción",
|
||||||
"view-receipt": "Ver recibo"
|
"view-receipt": "Ver recibo"
|
||||||
},
|
},
|
||||||
"account": {
|
"account": {
|
||||||
|
@ -71,8 +71,8 @@
|
|||||||
"n-question-per-month": "{{count}} 点额度 / 月",
|
"n-question-per-month": "{{count}} 点额度 / 月",
|
||||||
"early-bird-checkout": "早鸟优惠,5 折购买 1 年"
|
"early-bird-checkout": "早鸟优惠,5 折购买 1 年"
|
||||||
},
|
},
|
||||||
"billing": {
|
"subscription": {
|
||||||
"self": "计费",
|
"self": "订阅",
|
||||||
"view-receipt": "查看收据"
|
"view-receipt": "查看收据"
|
||||||
},
|
},
|
||||||
"account": {
|
"account": {
|
||||||
|
@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { Dialog, Transition } from "@headlessui/react";
|
import { Dialog, Transition } from "@headlessui/react";
|
||||||
import { ArrowUturnLeftIcon, Bars3Icon, Cog6ToothIcon, XMarkIcon, CreditCardIcon } from "@heroicons/react/24/outline";
|
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";
|
import StripeCheckPaymentBanner from "../../components/StripeCheckPaymentBanner";
|
||||||
|
|
||||||
function classNames(...classes: string[]) {
|
function classNames(...classes: string[]) {
|
||||||
@ -175,7 +175,7 @@ const SettingPage: NextPage = () => {
|
|||||||
<main className="lg:pl-72">
|
<main className="lg:pl-72">
|
||||||
{router.query.session_id && <StripeCheckPaymentBanner sessionId={router.query.session_id as string} />}
|
{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">
|
<div className="px-4 sm:px-6 lg:px-8 dark:bg-zinc-800">
|
||||||
<SettingView />
|
<SettingGeneralView />
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user