Skip to content

Commit

Permalink
rename Magic Link to Smart Link
Browse files Browse the repository at this point in the history
  • Loading branch information
devanoneth committed Apr 30, 2024
1 parent a75d4bf commit edff2b3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/transactions/SignTxButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { AppRoutes } from '@/config/routes'
import { OnboardingTooltip } from '@/components/common/OnboardingTooltip'

const LS_MAGICLINK_ONBOARDING = 'magiclink_onboarding'
const INITIAL_TOOLTIP_TEXT = 'Copy Magic Link'
const INITIAL_TOOLTIP_TEXT = 'Copy Smart Link'

const SignTxButton = ({
txSummary,
Expand Down Expand Up @@ -119,7 +119,7 @@ ${fullLink}
placement="top"
text={
<>
Eternal Safe relies on magic links to share transaction details.
Eternal Safe relies on smart links to share transaction details.
<br />
These links are unique to each transaction and should be shared with other signers in order to collect
signatures and share full transaction details.
Expand All @@ -131,7 +131,7 @@ ${fullLink}
onClose={() => setShowMagicTooltip(false)}
>
<Button sx={{ whiteSpace: 'nowrap' }} onClick={onClick} variant="contained" disabled={!link} size="stretched">
Magic Link
Smart Link
</Button>
</OnboardingTooltip>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const DecodedData = ({ txData, txInfo }: Props): ReactElement | null => {
if (!txData) {
return (
<InfoDetails title="Unknown transaction:">
Full details for this transaction must be recovered through the magic link or data export from another signer.
Full details for this transaction must be recovered through the smart link or data export from another signer.
</InfoDetails>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/TxShareLink/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const TxShareLink = ({ safeTx }: { safeTx: SafeTransaction }): ReactElement => {
}

return (
<Tooltip title="Copy Magic Link" disableInteractive placement="top">
<Tooltip title="Copy Smart Link" disableInteractive placement="top">
<IconButton
data-testid="share-btn"
component={Link}
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useMagicLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export const useTransactionMagicLink = (): { tx: SafeTransaction | undefined; tx
const e = asError(_e)
dispatch(
showNotification({
message: 'Could not load magic link, please check the URL and try again.',
groupKey: 'magic-link-error',
message: 'Could not load smart link, please check the URL and try again.',
groupKey: 'smart-link-error',
variant: 'error',
detailedMessage: e.message,
}),
Expand Down

0 comments on commit edff2b3

Please sign in to comment.