Skip to content

Commit

Permalink
Merge branch 'open_nodes' into feat/no-ref/metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
yougotwill committed Jul 9, 2024
2 parents 577c14d + f520525 commit 39f0f61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
15 changes: 2 additions & 13 deletions apps/staking/app/mystakes/modules/StakedNodesModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
} from '@session/ui/components/ModuleGrid';
import { Button } from '@session/ui/ui/button';
import { Switch } from '@session/ui/ui/switch';
import { useToggleWalletModal, useWallet } from '@session/wallet/hooks/wallet-hooks';
import { useWallet } from '@session/wallet/hooks/wallet-hooks';
import { useTranslations } from 'next-intl';
import Link from 'next/link';
import { useMemo } from 'react';
Expand Down Expand Up @@ -83,18 +83,7 @@ function NoWallet() {
return (
<ModuleGridInfoContent>
<p>{dictionary('noWalletP1')}</p>
<p>
{dictionary.rich('noWalletP2', {
link: (children) => {
const { open } = useToggleWalletModal();
return (
<a onClick={() => open()} className="text-session-green cursor-pointer underline">
{children}
</a>
);
},
})}
</p>
<p>{dictionary('noWalletP2')}</p>
<WalletModalButtonWithLocales rounded="md" size="lg" />
</ModuleGridInfoContent>
);
Expand Down
2 changes: 1 addition & 1 deletion apps/staking/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export enum URL {
}

export enum COMMUNITY_DATE {
SESSION_TOKEN_COMMUNITY_SNAPSHOT = '2024-06-09',
SESSION_TOKEN_COMMUNITY_SNAPSHOT = '2024-06-12',
OXEN_SERVICE_NODE_BONUS_PROGRAM = '2024-06-12',
}

Expand Down
2 changes: 1 addition & 1 deletion apps/staking/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
"title": "My Stakes",
"showHiddenText": "Show Hidden",
"noWalletP1": "You currently have no wallet connected.",
"noWalletP2": "Click the <link>Connect</link> button to view your staked Session node.",
"noWalletP2": "Click the Connect button to view your staked Session node.",
"noNodesP1": "You have no staked Session Nodes.",
"noNodesP2": "Click the <link>Stake Now</link> button to stake to an open node or register a new Session node.",
"stakeNowButtonText": "Stake Now",
Expand Down

0 comments on commit 39f0f61

Please sign in to comment.