Skip to content

Commit

Permalink
Added button for facebook page
Browse files Browse the repository at this point in the history
  • Loading branch information
Petra Halvorsen committed Oct 7, 2024
1 parent a97c606 commit 594fd62
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pages/EventDetails/components/EventRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,13 @@ const EventRenderer = ({ data, preview = false }: EventRendererProps) => {
)}
</>
)}

Check warning on line 389 in src/pages/EventDetails/components/EventRenderer.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

Delete `··············`
{data.is_paid_event&&(registration?.has_paid_order || data.list_count >= data.limit) &&

Check warning on line 390 in src/pages/EventDetails/components/EventRenderer.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

Replace `&&(registration?.has_paid_order·||·data.list_count·>=·data.limit)·&&` with `·&&·(registration?.has_paid_order·||·data.list_count·>=·data.limit)·&&·(`
<Link to = "https://www.facebook.com/groups/598608738731749/"><Button className='my-4 w-full'>{registration?.has_paid_order?"Selg billetten din her":"Sjekk om noen selger billett her"}</Button></Link>

Check warning on line 391 in src/pages/EventDetails/components/EventRenderer.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

Replace `··············<Link·to·=·"https://www.facebook.com/groups/598608738731749/"><Button·className='my-4·w-full'>{registration?.has_paid_order?"Selg·billetten·din·her":"Sjekk·om·noen·selger·billett·her"}</Button></Link>` with `················<Link·to='https://www.facebook.com/groups/598608738731749/'>⏎··················<Button·className='my-4·w-full'>{registration?.has_paid_order·?·'Selg·billetten·din·her'·:·'Sjekk·om·noen·selger·billett·her'}</Button>`
}

Check warning on line 392 in src/pages/EventDetails/components/EventRenderer.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

Replace `}⏎⏎··············⏎······` with `··</Link>⏎··············)}`


Check failure on line 394 in src/pages/EventDetails/components/EventRenderer.tsx

View workflow job for this annotation

GitHub Actions / build (18.x)

More than 1 blank line not allowed

</CardContent>
</Card>

Expand Down

0 comments on commit 594fd62

Please sign in to comment.