@@ -23,7 +23,12 @@ const PgSidebar = () => {
2323 const [ selectedCategory , setSelectedCategory ] = useState < IQueryTemplateData | null > ( null ) ;
2424 const [ modalIsOpen , setModalIsOpen ] = useState ( false ) ;
2525
26- const basePath = useBasePath ;
26+ const moveIconPath = useBasePath ( "/icons/move.svg" ) ;
27+ const arrowRightSlimPath = useBasePath ( "/icons/arrow-right-slim.svg" ) ;
28+ const refreshIconPath = useBasePath ( "/icons/refresh.svg" ) ;
29+ const profilerIconPath = useBasePath ( "/icons/profiler.svg" ) ;
30+ const universityIconPath = useBasePath ( "/icons/university.svg" ) ;
31+ const cloudIconPath = useBasePath ( "/icons/cloud-midnight.svg" ) ;
2732
2833 useEffect ( ( ) => {
2934 if ( selectedQuery ) {
@@ -46,17 +51,17 @@ const PgSidebar = () => {
4651 {
4752 label : "Docs" ,
4853 url : "https://redis.io/docs/latest/" ,
49- image : basePath ( "/icons/profiler.svg" )
54+ image : profilerIconPath
5055 } ,
5156 {
5257 label : "Redis University" ,
5358 url : "https://university.redis.io/" ,
54- image : basePath ( "/icons/university.svg" )
59+ image : universityIconPath
5560 } ,
5661 {
5762 label : "Redis Cloud" ,
5863 url : "https://cloud.redis.io/" ,
59- image : basePath ( "/icons/cloud-midnight.svg" )
64+ image : cloudIconPath
6065 } ,
6166 ]
6267
@@ -68,7 +73,7 @@ const PgSidebar = () => {
6873 </ div >
6974 < div className = "pg-list-item anime-line-hover" onClick = { ( ) => setModalIsOpen ( true ) } >
7075 < div className = "pg-list-item-icon" >
71- < ImageIcon imgSrc = { basePath ( "/icons/move.svg" ) } alt = "move" imgWidth = "1rem" imgHeight = "1rem" />
76+ < ImageIcon imgSrc = { moveIconPath } alt = "move" imgWidth = "1rem" imgHeight = "1rem" />
7277 </ div >
7378 < div className = "pg-list-item-label select-query-label" >
7479 { labels . selectQuery }
@@ -89,7 +94,7 @@ const PgSidebar = () => {
8994 onClick = { ( ) => handleQueryItemClick ( item . queryId , selectedCategory ?. categoryId ) } >
9095
9196 < div className = "pg-list-item-icon" >
92- < ImageIcon imgSrc = { basePath ( "/icons/arrow-right-slim.svg" ) } alt = { item . label } imgWidth = "1rem" imgHeight = "1rem" />
97+ < ImageIcon imgSrc = { arrowRightSlimPath } alt = { item . label } imgWidth = "1rem" imgHeight = "1rem" />
9398 </ div >
9499 < div className = "pg-list-item-label" >
95100 { item . label }
@@ -120,7 +125,7 @@ const PgSidebar = () => {
120125
121126 < div className = "pg-list-item anime-line-hover" key = "replay-tour" onClick = { handleReplayTourClick } >
122127 < div className = "pg-list-item-icon" >
123- < ImageIcon imgSrc = { basePath ( "/icons/refresh.svg" ) } alt = "rotate" imgWidth = "1rem" imgHeight = "1rem" />
128+ < ImageIcon imgSrc = { refreshIconPath } alt = "rotate" imgWidth = "1rem" imgHeight = "1rem" />
124129 </ div >
125130 < div className = "pg-list-item-label pg-replay-tour-lbl" >
126131 { labels . replayTour }
0 commit comments