Skip to content

Commit

Permalink
replace support url
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharqiewicz committed Jun 18, 2024
1 parent 3ea6fe0 commit 8937c60
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/pages/bridge/Issue/ConfirmationDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { nativeStellarToDecimal } from '../../../shared/parseNumbers/metric';
import { Dialog } from '../../collators/dialogs/Dialog';
import { generateSEP0007URIScheme } from '../../../helpers/stellar/sep0007';
import { StellarUriScheme } from './StellarURIScheme';
import { PENDULUM_SUPPORT_CHAT_URL } from '../../../shared/constants';

interface ConfirmationDialogProps {
issueRequest: RichIssueRequest | undefined;
Expand Down Expand Up @@ -100,7 +101,7 @@ export function ConfirmationDialog(props: ConfirmationDialogProps): JSX.Element
</li>
<li className="mt-1">
Estimated time for issuing is in a minute after submitting the Stellar payment to the vault, contact
<a href="https://t.me/pendulum_chain" target="_blank" rel="noreferrer" className="mx-1 text-primary">
<a href={PENDULUM_SUPPORT_CHAT_URL} target="_blank" rel="noreferrer" className="mx-1 text-primary">
support
</a>
if your transaction is still pending after 10 minutes.
Expand Down
3 changes: 2 additions & 1 deletion src/pages/bridge/Issue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import Disclaimer from './Disclaimer';
import { getIssueValidationSchema } from './IssueValidationSchema';
import { isU128Compatible } from '../../../shared/parseNumbers/isU128Compatible';
import { USER_INPUT_MAX_DECIMALS } from '../../../shared/parseNumbers/decimal';
import { PENDULUM_SUPPORT_CHAT_URL } from '../../../shared/constants';

interface IssueProps {
network: string;
Expand Down Expand Up @@ -107,7 +108,7 @@ function Issue(props: IssueProps): JSX.Element {
</li>
<li>
Estimated time for issuing: In a minute after submitting the Stellar payment to the vault. Contact
<a href="https://t.me/pendulum_chain" target="_blank" rel="noreferrer" className="mx-1 text-primary">
<a href={PENDULUM_SUPPORT_CHAT_URL} target="_blank" rel="noreferrer" className="mx-1 text-primary">
support
</a>
if your transaction is still pending after 10 minutes.
Expand Down
3 changes: 2 additions & 1 deletion src/pages/bridge/Redeem/ConfirmationDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { RichRedeemRequest } from '../../../hooks/spacewalk/useRedeemPallet';
import { nativeStellarToDecimal } from '../../../shared/parseNumbers/metric';
import { Dialog } from '../../collators/dialogs/Dialog';
import { useMemo } from 'preact/hooks';
import { PENDULUM_SUPPORT_CHAT_URL } from '../../../shared/constants';

interface ConfirmationDialogProps {
redeemRequest: RichRedeemRequest | undefined;
Expand Down Expand Up @@ -40,7 +41,7 @@ export function ConfirmationDialog(props: ConfirmationDialogProps): JSX.Element
<div className="mt-6">
<div className="text-sm mt-2 text-center">
This typically takes only a few minutes. Contact
<a href="https://t.me/pendulum_chain" target="_blank" rel="noreferrer" className="mx-1 text-primary">
<a href={PENDULUM_SUPPORT_CHAT_URL} target="_blank" rel="noreferrer" className="mx-1 text-primary">
support
</a>
if your transaction is still pending after 10 minutes.
Expand Down
3 changes: 2 additions & 1 deletion src/pages/bridge/TransactionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { useVaultRegistryPallet } from '../../hooks/spacewalk/useVaultRegistryPa
import { nativeToDecimal } from '../../shared/parseNumbers/metric';
import { TTransfer, TransferType } from './TransactionsColumns';
import { Dialog } from '../collators/dialogs/Dialog';
import { PENDULUM_SUPPORT_CHAT_URL } from '../../shared/constants';

interface BaseTransactionDialogProps {
id: string;
Expand Down Expand Up @@ -330,7 +331,7 @@ export function PendingTransactionDialog(props: TransactionDialogProps) {
<div className="mt-4" />
<div className="text-sm px-5 ">
Note: Estimated time for issuing is in a minute after submitting the Stellar payment to the vault, contact
<a href="https://t.me/pendulum_chain" target="_blank" rel="noreferrer" className="mx-1 text-primary">
<a href={PENDULUM_SUPPORT_CHAT_URL} target="_blank" rel="noreferrer" className="mx-1 text-primary">
support
</a>
if your transaction is still pending after 10 minutes.
Expand Down
3 changes: 2 additions & 1 deletion src/pages/bridge/TransferDialog/PendingTransferDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { useSecurityPallet } from '../../../hooks/spacewalk/useSecurityPallet';
import { nativeToDecimal } from '../../../shared/parseNumbers/metric';
import { TransferType } from '../TransactionsColumns';
import { TransferDialogProps, BaseTransferDialog } from './TransferDialog';
import { PENDULUM_SUPPORT_CHAT_URL } from '../../../shared/constants';

export function PendingTransferDialog(props: TransferDialogProps) {
const { transfer, visible, onClose } = props;
Expand Down Expand Up @@ -73,7 +74,7 @@ export function PendingTransferDialog(props: TransferDialogProps) {
<div className="mt-4" />
<div className="text-sm px-5 ">
Note: Estimated time for issuing is in a minute after submitting the Stellar payment to the vault, contact
<a href="https://t.me/pendulum_chain" target="_blank" rel="noreferrer" className="mx-1 text-primary">
<a href={PENDULUM_SUPPORT_CHAT_URL} target="_blank" rel="noreferrer" className="mx-1 text-primary">
support
</a>
if your transaction is still pending after 10 minutes.
Expand Down
3 changes: 3 additions & 0 deletions src/shared/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
export const MINUTE_IN_MILLISECONDS = 60 * 1000;
export const SECONDS_IN_A_DAY = 86400;
export const BLOCK_TIME_SEC = 12;


export const PENDULUM_SUPPORT_CHAT_URL = 'https://discord.com/channels/841944723979108403/1247164487883292672'

0 comments on commit 8937c60

Please sign in to comment.