incude button

This commit is contained in:
Anton Tranelis 2025-02-04 17:25:21 +00:00
parent bead17d189
commit 27f0af6654
2 changed files with 9 additions and 2 deletions

View File

@ -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'
>

View File

@ -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
}