Open yashpandey06 opened 2 months ago
Hey @yashpandey06 π Great point out. Really a valid one. I agree!
Do you have intentions with this? If not, surely we would look into this, definitely.
Hey @yashpandey06 π Great point out. Really a valid one. I agree!
Do you have intentions with this? If not, surely we would look into this, definitely.
Yeah , I would like to work on this βΊοΈ.If you have not started yet.
Okay, would leave that to you. Sure you can! @yashpandey06
sure be mindful of the test cases in place for the active links in the tests folder. should incase there are any breaks in the test while at it to be modified.
I'm not sure why, but when I try to start my Vite server, the screen is completely blank with no errors being thrown. Could you help me with this?
@Vinyl-Davyl
I'm not sure why, but when I try to start my Vite server, the screen is completely blank with no errors being thrown. Could you help me with this?
@Vinyl-Davyl
Hey Yash, I guess you should check your console on the browser, you would probably see something relating to the <Router>
or BrowserRouter. So as a fresh start to the application, vite is probably loading up the Mixed ESM and CJS like in the @accordproject/template-engine and more. So it's a cold restart.
I suggest you give it some more time, try clearing your cache or deleting and install your node modules again if possibe
npm cache clean --force rm -rf node_modules npm install
. Let me know when you make progress with this
Title: Refactor Menu Links Using Constants and Map Function for Better Code Structure
Description:
In the current implementation of the
Menu.ItemGroup
, thehref
,target
,rel
, and other fields are hardcoded directly in the JSX. This approach can lead to redundancy and reduce maintainability, especially as the application scales.Current Scenerio :
Proposed Solution:
To improve the code quality and follow industry-level best practices, we can:
href
,target
,rel
, etc.) in a constant file to centralize these values and make them easier to manage.map()
function to dynamically renderMenu.ItemGroup
components. This will not only reduce code duplication but also make it more maintainable and scalable.Benefits:
Example: