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
49130c6
commit e03ed92
Showing
13 changed files
with
93 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
# !STARTERCONF Duplicate this to .env.local | ||
WEB3AUTH_CLIENT_ID="BCUJ9sDhdO5iekR-oaXL7bIC5Dg3tPNyhtGp_4z_SLp3B0ZKp-0qmE9RFWxUdY4g1wNzJqkxr10d14ty-PoAqCI" | ||
ZERODEV_ID="f6375b6f-2205-4fc7-bc87-f03218789b86" | ||
|
||
# DEVELOPMENT TOOLS | ||
# Ideally, don't add them to production deployment envs | ||
# !STARTERCONF Change to true if you want to log data | ||
NEXT_PUBLIC_SHOW_LOGGER="false" | ||
NEXT_PUBLIC_ALCHEMY_API_KEY='tOs_g_ehALVT-_ca7ly1X4PeAwVyp2Kg' |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,18 +1,24 @@ | ||
'use client' | ||
|
||
import { createSlice } from "@reduxjs/toolkit" | ||
import { createSlice, PayloadAction } from "@reduxjs/toolkit" | ||
|
||
export const addressSlice = createSlice({ | ||
interface AddressState { | ||
value: string; | ||
} | ||
|
||
const initialState: AddressState = { | ||
value: "0xc8C26Ab40fe4723519fE66B8dBb625FC070A982c", | ||
}; | ||
|
||
const addressSlice = createSlice({ | ||
name: "address", | ||
initialState: { | ||
value: "0xc8C26Ab40fe4723519fE66B8dBb625FC070A982c", | ||
}, | ||
initialState, | ||
reducers: { | ||
address: (state) => { | ||
state.value = "0xc8C26Ab40fe4723519fE66B8dBb625FC070A982c" | ||
setAddress: (state, action: PayloadAction<string>) => { | ||
state.value = action.payload; | ||
}, | ||
|
||
}, | ||
}); | ||
export const { address } = addressSlice.actions; | ||
|
||
export const { setAddress } = addressSlice.actions; | ||
export default addressSlice.reducer; |
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
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,9 +1,22 @@ | ||
'use client'; | ||
// QR Code | ||
import QRCode from "react-qr-code"; | ||
|
||
// Redux | ||
import { useSelector } from "react-redux"; | ||
|
||
export default function Page() { | ||
|
||
const address = useSelector((state: string) => state.address.value) | ||
|
||
return ( | ||
<> | ||
<h1>Backup Receive Page</h1> | ||
<div className="p-4"> | ||
<div className="mt-4"> | ||
<QRCode value="http://localhost:3000/" /> | ||
</div> | ||
</div> | ||
</> | ||
); | ||
} |
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