remove isRichTextV2Enabled feature flag (#10562)
This commit is contained in:
@ -4,9 +4,7 @@ import { IconForbid } from 'twenty-ui';
|
||||
import { MatchColumnSelect } from '@/spreadsheet-import/components/MatchColumnSelect';
|
||||
import { useSpreadsheetImportInternal } from '@/spreadsheet-import/hooks/useSpreadsheetImportInternal';
|
||||
|
||||
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
|
||||
import { FieldMetadataType } from 'twenty-shared';
|
||||
import { FeatureFlagKey } from '~/generated-metadata/graphql';
|
||||
import { Columns, ColumnType } from '../MatchColumnsStep';
|
||||
|
||||
const StyledContainer = styled.div`
|
||||
@ -27,19 +25,12 @@ export const TemplateColumn = <T extends string>({
|
||||
columnIndex,
|
||||
onChange,
|
||||
}: TemplateColumnProps<T>) => {
|
||||
const isRichTextV2Enabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IsRichTextV2Enabled,
|
||||
);
|
||||
const { fields } = useSpreadsheetImportInternal<T>();
|
||||
const column = columns[columnIndex];
|
||||
const isIgnored = column.type === ColumnType.ignored;
|
||||
|
||||
const fieldOptions = fields
|
||||
.filter((field) =>
|
||||
isRichTextV2Enabled
|
||||
? field.fieldMetadataType !== FieldMetadataType.RICH_TEXT
|
||||
: true,
|
||||
)
|
||||
.filter((field) => field.fieldMetadataType !== FieldMetadataType.RICH_TEXT)
|
||||
.map(({ icon, label, key }) => {
|
||||
const isSelected =
|
||||
columns.findIndex((column) => {
|
||||
|
||||
Reference in New Issue
Block a user