-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix bugs * add loop check twitter obj
- Loading branch information
Showing
9 changed files
with
113 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
import WalletGuard from 'src/components/guard/WalletGuard'; | ||
import InvitationOverviewView from 'src/sections/invitations/overview'; | ||
|
||
export const metadata = { title: `Invitation` }; | ||
|
||
export default function Page() { | ||
return (<WalletGuard> | ||
<InvitationOverviewView /> | ||
</WalletGuard>); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
infra/rooch-portal-v2/src/sections/invitations/overview.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
'use client'; | ||
|
||
import { useEffect } from 'react'; | ||
import { useCurrentAddress } from '@roochnetwork/rooch-sdk-kit'; | ||
|
||
import { useRouter } from 'src/routes/hooks'; | ||
|
||
export default function InvitationOverviewView() { | ||
const address = useCurrentAddress(); | ||
const router = useRouter(); | ||
useEffect(() => { | ||
if (address) { | ||
router.push(`/invitation/${address.toStr()}`); | ||
} | ||
}, [address, router]); | ||
if (!address) { | ||
return null; | ||
} | ||
return null; | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters