Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7.7.1 #2781

Merged
merged 1 commit into from
Sep 15, 2023
Merged

v7.7.1 #2781

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/app/src/constants/links.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { CurrencyKey } from './currency'

export const PROD_HOSTNAME = 'kwenta.eth.limo'
export const PROD_REFFERAL_URL = 'kwenta.eth.limo/market'

export const EXTERNAL_LINKS = {
Trading: {
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/sections/referrals/ReferralCodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { DesktopOnlyView, MobileOrTabletView } from 'components/Media'
import Table from 'components/Table'
import { TableHeader } from 'components/Table'
import { Body } from 'components/Text'
import { PROD_HOSTNAME } from 'constants/links'
import { PROD_REFFERAL_URL } from 'constants/links'
import useIsL2 from 'hooks/useIsL2'
import { setOpenModal } from 'state/app/reducer'
import { selectShowModal } from 'state/app/selectors'
Expand Down Expand Up @@ -62,7 +62,7 @@ const ReferralCodes: FC<ReferralCodesProps> = memo(({ data }) => {
const y = event.clientY
const { protocol, hostname, port } = window.location
const fullUrl = `${protocol}//${
process.env.NEXT_PUBLIC_REF_URL_OVERRIDE === 'true' ? PROD_HOSTNAME : hostname
process.env.NEXT_PUBLIC_REF_URL_OVERRIDE === 'true' ? PROD_REFFERAL_URL : hostname
}${port ? `:${port}` : ``}/?ref=${text}`

navigator.clipboard.writeText(fullUrl).then(() => {
Expand Down