@@ -21,7 +21,8 @@ export const Header = () => {
2121
2222 const isEmbeddedWalletRoute =
2323 isHydrated && pathname ?. startsWith ( "/embedded-wallet" ) ;
24- const isApiWalletRoute = isHydrated && pathname ?. startsWith ( "/api-wallet" ) ;
24+ const isServerWalletRoute =
25+ isHydrated && pathname ?. startsWith ( "/server-wallet" ) ;
2526
2627 // Dynamic docs configuration based on pathname
2728 const getDocsConfig = ( ) => {
@@ -31,10 +32,10 @@ export const Header = () => {
3132 url : "https://docs.magic.link/embedded-wallets/introduction" ,
3233 } ;
3334 }
34- if ( isApiWalletRoute ) {
35+ if ( isServerWalletRoute ) {
3536 return {
36- text : "View Express Docs" ,
37- url : "https://docs.magic.link/api -wallets/express-api/overview" ,
37+ text : "View Server Wallet Docs" ,
38+ url : "https://docs.magic.link/server -wallets/express-api/overview" ,
3839 } ;
3940 }
4041 // Default Magic docs
@@ -66,7 +67,7 @@ export const Header = () => {
6667 </ a >
6768
6869 < div className = "flex flex-col md:flex-row items-center gap-4 z-10" >
69- { isApiWalletRoute && (
70+ { isServerWalletRoute && (
7071 < Link
7172 href = "/embedded-wallet"
7273 className = "flex-shrink-0 w-full md:w-auto"
@@ -85,16 +86,19 @@ export const Header = () => {
8586 </ Link >
8687 ) }
8788 { isEmbeddedWalletRoute && (
88- < Link href = "/api-wallet" className = "flex-shrink-0 w-full md:w-auto" >
89+ < Link
90+ href = "/server-wallet"
91+ className = "flex-shrink-0 w-full md:w-auto"
92+ >
8993 < Button variant = "secondary" onClick = { ( ) => { } } fullWidth glow >
9094 < div className = "flex items-center gap-2" >
9195 < Image
9296 src = { iconExpress }
93- alt = "Express API Wallet"
97+ alt = "Server Wallet"
9498 width = { 24 }
9599 height = { 24 }
96100 />
97- Try API Wallet
101+ Try Server Wallet
98102 </ div >
99103 </ Button >
100104 </ Link >
0 commit comments