Skip to content

Commit

Permalink
Replace support url (#499)
Browse files Browse the repository at this point in the history
* replace support url

* fix paths
  • Loading branch information
Sharqiewicz authored Jun 26, 2024
1 parent 98bc392 commit 11c7f81
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/pages/spacewalk/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 '../../../staking/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
5 changes: 3 additions & 2 deletions src/pages/spacewalk/bridge/Issue/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ import { prioritizeXLMAsset } from '../helpers';
import { ConfirmationDialog } from './ConfirmationDialog';
import Disclaimer from './Disclaimer';
import { getIssueValidationSchema } from './IssueValidationSchema';
import { PAGES_PATHS } from '../../../../app';
import { isU128Compatible } from '../../../../shared/parseNumbers/isU128Compatible';
import { USER_INPUT_MAX_DECIMALS } from '../../../../shared/parseNumbers/decimal';
import { PENDULUM_SUPPORT_CHAT_URL } from '../../../../shared/constants';
import { PAGES_PATHS } from '../../../../app';

interface IssueProps {
network: string;
Expand Down Expand Up @@ -110,7 +111,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/spacewalk/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 '../../../staking/dialogs/Dialog';
import { useMemo } from 'preact/hooks';
import { PENDULUM_SUPPORT_CHAT_URL } from '../../../../shared/constants';
import { PAGES_PATHS } from '../../../../app';

interface ConfirmationDialogProps {
Expand Down Expand Up @@ -41,7 +42,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/spacewalk/transactions/TransactionDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { useVaultRegistryPallet } from '../../../hooks/spacewalk/useVaultRegistr
import { nativeToDecimal } from '../../..//shared/parseNumbers/metric';
import { Dialog } from '../../staking/dialogs/Dialog';
import { TTransfer, TransferType } from './TransactionsColumns';
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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,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 @@ -77,7 +78,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 11c7f81

Please sign in to comment.