generated from theodorusclarence/ts-nextjs-tailwind-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0f1b92d
commit d1d08b1
Showing
9 changed files
with
244 additions
and
268 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 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
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
'use client' | ||
import { useRouter } from 'next/router'; | ||
// Next | ||
import { useSearchParams } from 'next/navigation'; | ||
import { useRouter } from 'next/navigation'; | ||
import { useEffect } from 'react'; | ||
|
||
export default function Page() { | ||
const searchParams = useSearchParams(); | ||
let address = searchParams.get('address'); | ||
|
||
return <p>Payee: {address}</p>; | ||
const router = useRouter(); | ||
useEffect(() => { | ||
router.push('/home'); | ||
}, []); | ||
return ( | ||
<> | ||
<h1> backup payee</h1> | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,33 +1,14 @@ | ||
'use client'; | ||
|
||
import BackButton from '@/app/components/Navigation/BackButton/BackButton'; | ||
// components | ||
import SendUsdc from '@/app/components/SendUsdc/SendUsdc'; | ||
import { useRouter } from 'next/navigation'; | ||
import { useEffect } from 'react'; | ||
|
||
export default function Page() { | ||
const router = useRouter(); | ||
useEffect(() => { | ||
router.push('/home'); | ||
}, []); | ||
return ( | ||
<> | ||
<div className='grid'> | ||
|
||
<div className='flex p-4'> | ||
<div | ||
onClick={() => { | ||
router.push('/home'); | ||
}} | ||
> | ||
<BackButton /> | ||
</div> | ||
<div className='my-4'> | ||
<p className='my-4 text-center text-xl text-gray-300'>Send</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className='mt-10'> | ||
<SendUsdc /> | ||
</div> | ||
<h1> backup Send</h1> | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
'use client'; | ||
import { useRouter } from 'next/navigation'; | ||
import { useEffect } from 'react'; | ||
|
||
export default function Page() { | ||
const router = useRouter(); | ||
useEffect(() => { | ||
router.push('/home'); | ||
}, []); | ||
return ( | ||
<> | ||
<h1>Backup Tx Page</h1> | ||
<h1> backup tx page</h1> | ||
</> | ||
); | ||
} |
Oops, something went wrong.