mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
fix share base url
This commit is contained in:
parent
f296ddd606
commit
660b4231b6
@ -1,13 +1,12 @@
|
||||
/* eslint-disable camelcase */
|
||||
import { Item } from '../../../types'
|
||||
import SocialShareBar from './SocialShareBar'
|
||||
|
||||
export const GroupSubHeaderView = ({
|
||||
item,
|
||||
share_base_url,
|
||||
shareBaseUrl,
|
||||
}: {
|
||||
item: Item
|
||||
share_base_url: string
|
||||
shareBaseUrl: string
|
||||
}) => (
|
||||
<div className='tw-px-6'>
|
||||
<div className='tw-float-left tw-mt-2 tw-mb-4 tw-flex tw-items-center'>
|
||||
@ -27,7 +26,7 @@ export const GroupSubHeaderView = ({
|
||||
)}
|
||||
</div>
|
||||
<div>
|
||||
<SocialShareBar url={share_base_url + item.slug} title={item.name} />
|
||||
<SocialShareBar url={shareBaseUrl + item.slug} title={item.name} />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
@ -8,7 +8,7 @@ export const OnepagerView = ({ item }: { item: Item }) => {
|
||||
<div className='tw-h-full tw-overflow-y-auto fade'>
|
||||
<GroupSubHeaderView
|
||||
item={item}
|
||||
share_base_url={`https://www.wuerdekompass.org/aktivitaeten/gruppensuche/#/gruppe/${item.slug}`}
|
||||
shareBaseUrl={`https://www.wuerdekompass.org/aktivitaeten/gruppensuche/#/gruppe/${item.slug}`}
|
||||
/>
|
||||
{item.user_created.first_name && <ContactInfoView heading='Du hast Fragen?' item={item} />}
|
||||
{/* Description Section */}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user