fix share base url

This commit is contained in:
Anton Tranelis 2024-11-06 20:24:01 +01:00
parent f296ddd606
commit 660b4231b6
2 changed files with 4 additions and 5 deletions

View File

@ -1,13 +1,12 @@
/* eslint-disable camelcase */
import { Item } from '../../../types' import { Item } from '../../../types'
import SocialShareBar from './SocialShareBar' import SocialShareBar from './SocialShareBar'
export const GroupSubHeaderView = ({ export const GroupSubHeaderView = ({
item, item,
share_base_url, shareBaseUrl,
}: { }: {
item: Item item: Item
share_base_url: string shareBaseUrl: string
}) => ( }) => (
<div className='tw-px-6'> <div className='tw-px-6'>
<div className='tw-float-left tw-mt-2 tw-mb-4 tw-flex tw-items-center'> <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>
<div> <div>
<SocialShareBar url={share_base_url + item.slug} title={item.name} /> <SocialShareBar url={shareBaseUrl + item.slug} title={item.name} />
</div> </div>
</div> </div>
) )

View File

@ -8,7 +8,7 @@ export const OnepagerView = ({ item }: { item: Item }) => {
<div className='tw-h-full tw-overflow-y-auto fade'> <div className='tw-h-full tw-overflow-y-auto fade'>
<GroupSubHeaderView <GroupSubHeaderView
item={item} 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} />} {item.user_created.first_name && <ContactInfoView heading='Du hast Fragen?' item={item} />}
{/* Description Section */} {/* Description Section */}