mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
refactor(console): remove pro tag from app category filter (#5301)
This commit is contained in:
parent
f3c69ce3f3
commit
e1efe23e83
1 changed files with 3 additions and 14 deletions
|
@ -1,16 +1,14 @@
|
|||
import { ReservedPlanId, type Application } from '@logto/schemas';
|
||||
import { type Application } from '@logto/schemas';
|
||||
import classNames from 'classnames';
|
||||
import { useCallback, useContext, useMemo, useState } from 'react';
|
||||
import { useCallback, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import SearchIcon from '@/assets/icons/search.svg';
|
||||
import EmptyDataPlaceholder from '@/components/EmptyDataPlaceholder';
|
||||
import FeatureTag from '@/components/FeatureTag';
|
||||
import { type SelectedGuide } from '@/components/Guide/GuideCard';
|
||||
import GuideCardGroup from '@/components/Guide/GuideCardGroup';
|
||||
import { useAppGuideMetadata } from '@/components/Guide/hooks';
|
||||
import { isCloud, isDevFeaturesEnabled } from '@/consts/env';
|
||||
import { SubscriptionDataContext } from '@/contexts/SubscriptionDataProvider';
|
||||
import { isDevFeaturesEnabled } from '@/consts/env';
|
||||
import { CheckboxGroup } from '@/ds-components/Checkbox';
|
||||
import OverlayScrollbar from '@/ds-components/OverlayScrollbar';
|
||||
import TextInput from '@/ds-components/TextInput';
|
||||
|
@ -38,7 +36,6 @@ function GuideLibrary({ className, hasCardBorder, hasCardButton, hasFilters }: P
|
|||
const [selectedGuide, setSelectedGuide] = useState<SelectedGuide>();
|
||||
const { getFilteredAppGuideMetadata, getStructuredAppGuideMetadata } = useAppGuideMetadata();
|
||||
const [showCreateForm, setShowCreateForm] = useState<boolean>(false);
|
||||
const { currentPlan } = useContext(SubscriptionDataContext);
|
||||
|
||||
const structuredMetadata = useMemo(
|
||||
() => getStructuredAppGuideMetadata({ categories: filterCategories }),
|
||||
|
@ -111,14 +108,6 @@ function GuideLibrary({ className, hasCardBorder, hasCardButton, hasFilters }: P
|
|||
setFilterCategories(sortedValue);
|
||||
}}
|
||||
/>
|
||||
{/* TODO: must be refactored since there's no way to see the tag's intention */}
|
||||
{isCloud && (
|
||||
<FeatureTag
|
||||
isVisible={!currentPlan.quota.machineToMachineLimit}
|
||||
plan={ReservedPlanId.Pro}
|
||||
className={styles.proTag}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue