-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from shawakash/account_ui
fix: the sidenav bar select tab and added new layouts to /account/[id]
- Loading branch information
Showing
14 changed files
with
200 additions
and
116 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default function Page({ params }: { params: { id: string } }) { | ||
console.log(params) | ||
return <div>From /: {params.id}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function Page({ params }: { params: { id: string } }) { | ||
console.log(params); | ||
//TODO: FETCH THE TXN DATA FOR THIS FOR THIS ACCOUNT | ||
return <div>From Private key: {params.id}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function Page({ params }: { params: { id: string } }) { | ||
console.log(params); | ||
//TODO: FETCH THE TXN DATA FOR THIS FOR THIS ACCOUNT | ||
return <div>From remove account: {params.id}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function Page({ params }: { params: { id: string } }) { | ||
console.log(params); | ||
//TODO: FETCH THE TXN DATA FOR THIS FOR THIS ACCOUNT | ||
return <div>From secret phrase: {params.id}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export default function Page({ params }: { params: { id: string } }) { | ||
console.log(params); | ||
//TODO: FETCH THE TXN DATA FOR THIS FOR THIS ACCOUNT | ||
return <div>From statements: {params.id}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default function Page({ params }: { params: { id: string } }) { | ||
console.log(params) | ||
return <div>My Post: {params.id}</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
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,107 @@ | ||
|
||
import { | ||
Archive, | ||
ArchiveX, | ||
Inbox, | ||
Send, | ||
Trash2, | ||
File, | ||
Wallet, | ||
LayoutDashboard, | ||
Lock, | ||
VenetianMask, | ||
Bitcoin, | ||
PencilLine, | ||
FilePlus, | ||
FilePlus2Icon, | ||
GanttChart | ||
} from "lucide-react"; | ||
|
||
export const commonNavLinks = [ | ||
{ | ||
id: "", | ||
title: "Manage Accounts", | ||
label: "", | ||
icon: GanttChart, | ||
variant: "ghost", | ||
link: "/account", | ||
}, | ||
{ | ||
id: "create", | ||
title: "Create Account", | ||
label: "128", | ||
icon: FilePlus2Icon, | ||
variant: "ghost", | ||
link: "/account/create", | ||
}, | ||
{ | ||
id: "importSecretPhrase", | ||
title: "Import Secret Recovery", | ||
label: "9", | ||
icon: FilePlus, | ||
variant: "ghost", | ||
link: "/account/importSecretPhrase", | ||
}, | ||
{ | ||
id: "importPrivate", | ||
title: "Import From Private-Key", | ||
label: "", | ||
icon: Lock, | ||
variant: "ghost", | ||
link: "importPrivate", | ||
}, | ||
|
||
] | ||
|
||
export const getNavLinks = (id: string) => { | ||
return [ | ||
{ | ||
id: "dashboard", | ||
title: "Dashboard", | ||
label: "128", | ||
icon: LayoutDashboard, | ||
variant: "ghost", | ||
link: `/account/${id}/#`, | ||
}, | ||
{ | ||
id: "statements", | ||
title: "Statements", | ||
label: "9", | ||
icon: Bitcoin, | ||
variant: "ghost", | ||
link: `/account/${id}/statements`, | ||
}, | ||
{ | ||
id: "privatekey", | ||
title: "Private-Key", | ||
label: "", | ||
icon: Lock, | ||
variant: "ghost", | ||
link: `/account/${id}/privatekey`, | ||
}, | ||
{ | ||
id: "secretPhrase", | ||
title: "Secret", | ||
label: "23", | ||
icon: VenetianMask, | ||
variant: "ghost", | ||
link: `/account/${id}/secretPhrase`, | ||
}, | ||
{ | ||
id: "update", | ||
title: "Update", | ||
label: "", | ||
icon: PencilLine, | ||
variant: "ghost", | ||
link: `/account/${id}/update`, | ||
}, | ||
{ | ||
id: "remove", | ||
title: "Remove", | ||
label: "", | ||
icon: Trash2, | ||
variant: "ghost", | ||
link: `/account/${id}/remove`, | ||
}, | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default function Page({ params }: { params: { id: string } }) { | ||
console.log(params) | ||
return <div>From import Private: {params.id}</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default function Page({ params }: { params: { id: string } }) { | ||
console.log(params) | ||
return <div>From Import Secret: {params.id}</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
Oops, something went wrong.