Skip to content

Commit

Permalink
feat: connect beamer on 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
bassgeta committed Nov 29, 2023
1 parent 0e20e6c commit 192610c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/frame/FourOFour/FourOFour.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Link } from 'react-router-dom';
import { COLONY_DOCS } from '~constants';

import { MainLayout } from '~frame/Extensions/layouts';
import { openFeaturesBugs } from '~hooks/useBeamer';
import {
CREATE_COLONY_ROUTE_BASE,
LANDING_PAGE_ROUTE,
Expand Down Expand Up @@ -67,7 +68,7 @@ const FourOFour = () => (
</p>
<hr className="h-px w-full" />
<div className="w-full flex flex-col sm:flex-row gap-2 sm:gap-6 mt-8 mb-6">
<Button mode="quinary" className="flex-1">
<Button mode="quinary" className="flex-1" onClick={openFeaturesBugs}>
{formatText(MSG.reportBugBtn)}
</Button>
<ButtonLink
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useBeamer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const openWhatsNew = (
};

export const openFeaturesBugs = (
event: React.MouseEvent<HTMLAnchorElement>,
event: React.MouseEvent<HTMLElement>,
): void => {
if (typeof Beamer !== 'undefined') {
event.preventDefault();
Expand Down

0 comments on commit 192610c

Please sign in to comment.