File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -69,3 +69,5 @@ REACT_APP_MOONPAY_EXTERNAL_LINK="https://www.moonpay.com/buy"
6969
7070REACT_APP_MAGIC_API_KEY =
7171REACT_MOCK_CONVERSION_RATES = false
72+
73+ REACT_APP_GUIDES_URL = https://bosonprotocol.github.io/interface
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { generatePath } from "react-router-dom";
1111import { DrCenterRoutes } from "../../lib/routing/drCenterRoutes" ;
1212import { UrlParameters } from "../../lib/routing/parameters" ;
1313import {
14+ BosonProtocolRoutes ,
1415 BosonRoutes ,
1516 SellerCenterRoutes ,
1617 SocialRoutes
@@ -147,7 +148,7 @@ export const getSellRoutes = ({
147148 const isAccountSeller = roles . some ( ( role ) => role === UserRoles . Seller ) ;
148149 const productRoutes : { name : string ; url : string } [ ] = [ ] ;
149150 productRoutes . push ( {
150- name : "Templates & Guides " ,
151+ name : "Templates" ,
151152 url : BosonRoutes . Sell
152153 } ) ;
153154 productRoutes . push ( {
@@ -204,6 +205,11 @@ export const getHelpLinks = ({
204205 {
205206 name : "Email" ,
206207 email : "info@bosonapp.io"
208+ } ,
209+ {
210+ name : "Guides" ,
211+ url : BosonProtocolRoutes . Guides ,
212+ absolute : true
207213 }
208214 ] . filter ( isTruthy ) ;
209215} ;
Original file line number Diff line number Diff line change @@ -177,7 +177,10 @@ export const CONFIG = {
177177 ) ,
178178 magicLinkKey : process . env . REACT_APP_MAGIC_API_KEY as string ,
179179 rpcUrls : getRpcUrls ( infuraKey ) ,
180- widgetsUrl
180+ widgetsUrl,
181+ guidesUrl :
182+ process . env . REACT_APP_GUIDES_URL ||
183+ "https://bosonprotocol.github.io/interface"
181184} as const ;
182185export type GlobalConfig = typeof CONFIG ;
183186export const lensHandleMaxLength = Math . max (
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ export const BosonRoutes = addViewModePrefixToPaths(
3636) ;
3737
3838export const BosonProtocolRoutes = {
39- LearnMore : "https://www.bosonprotocol.io/technology"
39+ LearnMore : "https://www.bosonprotocol.io/technology" ,
40+ Guides : CONFIG . guidesUrl
4041} ;
4142
4243export const SellerCenterRoutes = {
You can’t perform that action at this time.
0 commit comments