add PopupTextInput Component

This commit is contained in:
Anton 2023-12-12 15:21:35 +01:00
parent 542d9d7f39
commit c27dfcd09b
2 changed files with 14 additions and 5 deletions

View File

@ -1,7 +1,16 @@
import * as React from 'react'
import { TextInput } from '../../../Input'
import { Item } from '../../../../types'
export const PopupTextInput = () => {
return (
<div>PopupTextInput</div>
)
export const PopupTextInput = ({ dataField, placeholder, style, item }:
{
dataField: string,
placeholder: string,
style?: string,
item?: Item
}) => {
return (
<TextInput defaultValue={item?.text ? item.text : ""} dataField={dataField} placeholder={placeholder} inputStyle={style}></TextInput>
)
}

View File

@ -1,4 +1,4 @@
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, TextView, StartEndView } from './Components/Map';
export { UtopiaMap, Layer, Tags, Permissions, ItemForm, ItemView, PopupTextAreaInput, PopupStartEndInput, PopupTextInput, TextView, StartEndView } from './Components/Map';
export {AppShell, Content, SideBar} from "./Components/AppShell"
export {AuthProvider, useAuth, LoginPage, SignupPage} from "./Components/Auth"
export {Settings} from './Components/Profile'