mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Added field types.
This commit is contained in:
parent
5039349d57
commit
39fb4fdaf8
6 changed files with 26 additions and 16 deletions
|
|
@ -2,7 +2,7 @@ import { Menu, Item, Form, FormRow } from 'react-basics';
|
|||
import { useMessages } from 'hooks';
|
||||
import styles from './FieldSelectForm.module.css';
|
||||
|
||||
export default function FieldSelectForm({ items, onSelect }) {
|
||||
export default function FieldSelectForm({ items, onSelect, showType = true }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
|
||||
return (
|
||||
|
|
@ -13,7 +13,7 @@ export default function FieldSelectForm({ items, onSelect }) {
|
|||
return (
|
||||
<Item key={index} className={styles.item}>
|
||||
<div>{label || name}</div>
|
||||
{type && <div className={styles.type}>{type}</div>}
|
||||
{showType && type && <div className={styles.type}>{type}</div>}
|
||||
</Item>
|
||||
);
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue