mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
incude button
This commit is contained in:
parent
bead17d189
commit
27f0af6654
@ -27,7 +27,7 @@ export const PopupButton = ({
|
||||
<Link to={`${url}/${parameterField ? getValue(item, parameterField) : ''}?${params}`}>
|
||||
<button
|
||||
style={{
|
||||
backgroundColor: `${colorField && getValue(item, colorField) ? getValue(item, colorField) : item && getItemTags(item) && getItemTags(item)[0] && getItemTags(item)[0].color ? getItemTags(item)[0].color : item?.layer?.markerDefaultColor}`,
|
||||
backgroundColor: `${colorField && getValue(item, colorField) ? getValue(item, colorField) : item && getItemTags(item) && getItemTags(item)[0] && getItemTags(item)[0].color ? getItemTags(item)[0].color : item?.layer?.markerDefaultColor ? item?.layer?.markerDefaultColor : '#000'}`,
|
||||
}}
|
||||
className='tw-btn tw-text-white tw-btn-sm tw-float-right tw-mt-1'
|
||||
>
|
||||
|
||||
@ -33,6 +33,7 @@ import { GratitudeControl } from './Subcomponents/Controls/GratitudeControl'
|
||||
import { LayerControl } from './Subcomponents/Controls/LayerControl'
|
||||
import { SearchControl } from './Subcomponents/Controls/SearchControl'
|
||||
import { TagsControl } from './Subcomponents/Controls/TagsControl'
|
||||
import { PopupButton } from './Subcomponents/ItemPopupComponents/PopupButton'
|
||||
import { TextView } from './Subcomponents/ItemPopupComponents/TextView'
|
||||
import { SelectPosition } from './Subcomponents/SelectPosition'
|
||||
|
||||
@ -72,7 +73,13 @@ export function UtopiaMapInner({
|
||||
if (!init.current) {
|
||||
infoText &&
|
||||
setTimeout(() => {
|
||||
toast(<TextView rawText={infoText} />, { autoClose: false })
|
||||
toast(
|
||||
<>
|
||||
<PopupButton url={'https://opencollective.com/utopia-project'} text={'Support us'} />
|
||||
<TextView rawText={infoText} />
|
||||
</>,
|
||||
{ autoClose: false },
|
||||
)
|
||||
}, 10000)
|
||||
init.current = true
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user