mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-02-06 09:55:47 +00:00
chore: export TextViewStatic and use it in MapContainer
- Export TextViewStatic from ItemPopupComponents and Item modules - Update MapContainer to use TextViewStatic instead of TextView for popups Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
7e1d95ecdd
commit
5b446f933c
@ -12,7 +12,7 @@ import {
|
||||
PopupView,
|
||||
PopupButton,
|
||||
StartEndView,
|
||||
TextView,
|
||||
TextViewStatic,
|
||||
PopupForm,
|
||||
PopupStartEndInput,
|
||||
PopupTextAreaInput,
|
||||
@ -129,7 +129,7 @@ function MapContainer({ layers, map }: { layers: LayerProps[]; map: any }) {
|
||||
target={layer.itemType.custom_profile_url ? '_blank' : '_self'}
|
||||
/>
|
||||
)}
|
||||
{layer.itemType.show_text && <TextView truncate></TextView>}
|
||||
{layer.itemType.show_text && <TextViewStatic truncate></TextViewStatic>}
|
||||
</PopupView>
|
||||
<PopupForm>
|
||||
{layer.itemType.show_header_view_in_form && <HeaderView hideMenu />}
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import {
|
||||
TextView as PlainTextView,
|
||||
TextViewStatic as PlainTextViewStatic,
|
||||
StartEndView as PlainStartEndView,
|
||||
PopupTextInput as PlainPopupTextInput,
|
||||
PopupButton as PlainPopupButton,
|
||||
@ -15,6 +16,7 @@ export { PopupForm } from './PopupForm'
|
||||
export { PopupView } from './PopupView'
|
||||
|
||||
export const TextView = templateify(PlainTextView)
|
||||
export const TextViewStatic = templateify(PlainTextViewStatic)
|
||||
export const StartEndView = templateify(PlainStartEndView)
|
||||
export const PopupTextInput = templateify(PlainPopupTextInput)
|
||||
export const PopupButton = templateify(PlainPopupButton)
|
||||
|
||||
@ -3,6 +3,7 @@ export { PopupStartEndInput } from './PopupStartEndInput'
|
||||
export { PopupTextInput } from './PopupTextInput'
|
||||
export { PopupCheckboxInput } from './PopupCheckboxInput'
|
||||
export { TextView } from './TextView'
|
||||
export { TextViewStatic } from './TextViewStatic'
|
||||
export { StartEndView } from './StartEndView'
|
||||
export { PopupButton } from './PopupButton'
|
||||
export { HeaderView } from './HeaderView'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user