mirror of
https://github.com/aliasvault/aliasvault.git
synced 2026-05-08 23:35:43 -04:00
Remove custom fields header from item view mode in browser extensio and mobile app (#1965)
This commit is contained in:
committed by
Leendert de Borst
parent
4b96399127
commit
03c84e8fcd
@@ -268,9 +268,6 @@ const ItemDetails: React.FC = (): React.ReactElement => {
|
||||
{/* Custom Fields */}
|
||||
{groupedFields[FieldCategories.Custom] && groupedFields[FieldCategories.Custom].length > 0 && (
|
||||
<div className="space-y-2">
|
||||
<h2 className="text-xl font-semibold text-gray-900 dark:text-white">
|
||||
{t('common.customFields')}
|
||||
</h2>
|
||||
{groupedFields[FieldCategories.Custom].map((field) => (
|
||||
<FieldBlock key={field.FieldKey} field={field} itemId={item.Id} />
|
||||
))}
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
import type { Item, ItemField } from '@/utils/dist/core/models/vault';
|
||||
|
||||
import FieldBlock from '@/components/items/details/FieldBlock';
|
||||
import { ThemedText } from '@/components/themed/ThemedText';
|
||||
import { ThemedView } from '@/components/themed/ThemedView';
|
||||
|
||||
type CustomFieldsSectionProps = {
|
||||
@@ -15,9 +12,6 @@ type CustomFieldsSectionProps = {
|
||||
* Displays all custom fields for an item.
|
||||
*/
|
||||
export const CustomFieldsSection: React.FC<CustomFieldsSectionProps> = ({ item }): React.ReactNode => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
// Get custom fields from the item
|
||||
const customFields = item.Fields.filter(
|
||||
(field: ItemField) => field.IsCustomField
|
||||
);
|
||||
@@ -28,7 +22,6 @@ export const CustomFieldsSection: React.FC<CustomFieldsSectionProps> = ({ item }
|
||||
|
||||
return (
|
||||
<ThemedView style={styles.section}>
|
||||
<ThemedText type="subtitle">{t('itemTypes.customFields')}</ThemedText>
|
||||
{customFields.map((field: ItemField) => (
|
||||
<FieldBlock
|
||||
key={field.FieldKey}
|
||||
|
||||
Reference in New Issue
Block a user