From 153d5e8f03e672aefb020129d7bf7852255c4f8a Mon Sep 17 00:00:00 2001 From: twwu Date: Fri, 15 Aug 2025 11:14:38 +0800 Subject: [PATCH] refactor: Change plan-item directory --- web/app/components/billing/pricing/plans/index.tsx | 2 +- .../billing/pricing/{ => plans}/plan-item/button.tsx | 4 ++-- .../billing/pricing/{ => plans}/plan-item/index.tsx | 10 +++++----- .../pricing/{ => plans}/plan-item/list/index.tsx | 4 ++-- .../pricing/{ => plans}/plan-item/list/item/index.tsx | 0 .../{ => plans}/plan-item/list/item/tooltip.tsx | 0 6 files changed, 10 insertions(+), 10 deletions(-) rename web/app/components/billing/pricing/{ => plans}/plan-item/button.tsx (95%) rename web/app/components/billing/pricing/{ => plans}/plan-item/index.tsx (95%) rename web/app/components/billing/pricing/{ => plans}/plan-item/list/index.tsx (96%) rename web/app/components/billing/pricing/{ => plans}/plan-item/list/item/index.tsx (100%) rename web/app/components/billing/pricing/{ => plans}/plan-item/list/item/tooltip.tsx (100%) diff --git a/web/app/components/billing/pricing/plans/index.tsx b/web/app/components/billing/pricing/plans/index.tsx index 7983b401b5..8360542ffb 100644 --- a/web/app/components/billing/pricing/plans/index.tsx +++ b/web/app/components/billing/pricing/plans/index.tsx @@ -1,6 +1,6 @@ import Divider from '@/app/components/base/divider' import { type BasicPlan, Plan, type UsagePlanInfo } from '../../type' -import PlanItem from '../plan-item' +import PlanItem from './plan-item' import type { PlanRange } from '../plan-switcher/plan-range-switcher' type PlansProps = { diff --git a/web/app/components/billing/pricing/plan-item/button.tsx b/web/app/components/billing/pricing/plans/plan-item/button.tsx similarity index 95% rename from web/app/components/billing/pricing/plan-item/button.tsx rename to web/app/components/billing/pricing/plans/plan-item/button.tsx index fa19180de8..1f16632ef2 100644 --- a/web/app/components/billing/pricing/plan-item/button.tsx +++ b/web/app/components/billing/pricing/plans/plan-item/button.tsx @@ -1,6 +1,6 @@ import React from 'react' -import type { BasicPlan } from '../../type' -import { Plan } from '../../type' +import type { BasicPlan } from '../../../type' +import { Plan } from '../../../type' import cn from '@/utils/classnames' import { RiArrowRightLine } from '@remixicon/react' diff --git a/web/app/components/billing/pricing/plan-item/index.tsx b/web/app/components/billing/pricing/plans/plan-item/index.tsx similarity index 95% rename from web/app/components/billing/pricing/plan-item/index.tsx rename to web/app/components/billing/pricing/plans/plan-item/index.tsx index f435a9aaaa..874038d234 100644 --- a/web/app/components/billing/pricing/plan-item/index.tsx +++ b/web/app/components/billing/pricing/plans/plan-item/index.tsx @@ -2,11 +2,11 @@ import type { FC } from 'react' import React, { useMemo } from 'react' import { useTranslation } from 'react-i18next' -import type { BasicPlan } from '../../type' -import { Plan } from '../../type' -import { ALL_PLANS } from '../../config' -import Toast from '../../../base/toast' -import { PlanRange } from '../select-plan-range' +import type { BasicPlan } from '../../../type' +import { Plan } from '../../../type' +import { ALL_PLANS } from '../../../config' +import Toast from '../../../../base/toast' +import { PlanRange } from '../../select-plan-range' import { useAppContext } from '@/context/app-context' import { fetchSubscriptionUrls } from '@/service/billing' import List from './list' diff --git a/web/app/components/billing/pricing/plan-item/list/index.tsx b/web/app/components/billing/pricing/plans/plan-item/list/index.tsx similarity index 96% rename from web/app/components/billing/pricing/plan-item/list/index.tsx rename to web/app/components/billing/pricing/plans/plan-item/list/index.tsx index d183e003c6..0420bfc7a3 100644 --- a/web/app/components/billing/pricing/plan-item/list/index.tsx +++ b/web/app/components/billing/pricing/plans/plan-item/list/index.tsx @@ -1,8 +1,8 @@ import React from 'react' -import { type BasicPlan, Plan } from '../../../type' +import { type BasicPlan, Plan } from '../../../../type' import Item from './item' import { useTranslation } from 'react-i18next' -import { ALL_PLANS, NUM_INFINITE } from '../../../config' +import { ALL_PLANS, NUM_INFINITE } from '../../../../config' import Divider from '@/app/components/base/divider' type ListProps = { diff --git a/web/app/components/billing/pricing/plan-item/list/item/index.tsx b/web/app/components/billing/pricing/plans/plan-item/list/item/index.tsx similarity index 100% rename from web/app/components/billing/pricing/plan-item/list/item/index.tsx rename to web/app/components/billing/pricing/plans/plan-item/list/item/index.tsx diff --git a/web/app/components/billing/pricing/plan-item/list/item/tooltip.tsx b/web/app/components/billing/pricing/plans/plan-item/list/item/tooltip.tsx similarity index 100% rename from web/app/components/billing/pricing/plan-item/list/item/tooltip.tsx rename to web/app/components/billing/pricing/plans/plan-item/list/item/tooltip.tsx