Skip to content

Commit

Permalink
fix: Link to event URL in single event view (#252)
Browse files Browse the repository at this point in the history
* fix: add event URL to events

* fix: linting error
  • Loading branch information
alvyynm authored Nov 12, 2024
1 parent 1804d00 commit 9254211
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function Hero({ event }) {

const [isOpen, setIsOpen] = useState(false);

// eslint-disable-next-line no-unused-vars
function openModal() {
setIsOpen(true);
}
Expand Down Expand Up @@ -180,17 +181,19 @@ ${isVirtual ? "text-white" : "text-green-header"}
</div>
</div>

<button
type="button"
onClick={openModal}
<a
href={event?.link}
target="_blank"
rel="noreferrer"
// onClick={openModal}
className={`py-2 px-20 rounded-lg ${
isVirtual
? "text-green-header bg-white"
: "text-white bg-gradient-to-b to-primary from-green-dark"
}`}
>
Reserve for Free
</button>
Reserve Tickets
</a>
</div>

<EventRSVP
Expand Down

0 comments on commit 9254211

Please sign in to comment.