Skip to content

Commit

Permalink
fix: Use hardcoded url
Browse files Browse the repository at this point in the history
  • Loading branch information
d-beezee committed Jul 18, 2023
1 parent 25aa306 commit af3cc6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Bugform/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
import IframeResizer from 'iframe-resizer-react';
import { useParams, useSearchParams } from 'react-router-dom';
import { Header } from 'src/common/components/navigation/header/header';
import { isDev } from 'src/common/isDevEnvironment';

const BugForm = () => {
const { campaignId } = useParams<{ campaignId: string }>();
const [query] = useSearchParams();
const token = query.get('token') || '';
const tryberUrl = isDev() ? 'https://dev.tryber.me' : 'https:// tryber.me';
return (
<div>
<Header logo="full" loggedIn={false} />
<IframeResizer
heightCalculationMethod="lowestElement"
src={`${process.env.REACT_APP_TRYBER_URL}/vdp/${campaignId}/${token}`}
src={`${tryberUrl}/vdp/${campaignId}/${token}`}
style={{ width: '1px', minWidth: '100%', height: 0 }}
/>
</div>
Expand Down

0 comments on commit af3cc6d

Please sign in to comment.