From c27dfcd09bbda2e45b4d08cf4d7c1128cefffa03 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 12 Dec 2023 15:21:35 +0100 Subject: [PATCH] add PopupTextInput Component --- .../ItemPopupComponents/PopupTextInput.tsx | 17 +++++++++++++---- src/index.tsx | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.tsx b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.tsx index 66fa5d9f..e302ef48 100644 --- a/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.tsx +++ b/src/Components/Map/Subcomponents/ItemPopupComponents/PopupTextInput.tsx @@ -1,7 +1,16 @@ import * as React from 'react' +import { TextInput } from '../../../Input' +import { Item } from '../../../../types' -export const PopupTextInput = () => { - return ( -
PopupTextInput
- ) +export const PopupTextInput = ({ dataField, placeholder, style, item }: + { + dataField: string, + placeholder: string, + style?: string, + item?: Item + }) => { + + return ( + + ) } diff --git a/src/index.tsx b/src/index.tsx index 825bf022..31b8bb5c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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'