one-zero-eight / website

InNoHassle website for accessing ecosystem services at Innopolis University. Student dashboard, personal schedule, room booking, interactive maps, and more.
https://innohassle.ru
MIT License
10 stars 4 forks source link

Remove duplication of sidebar code in React #132

Closed danmaninc closed 8 months ago

danmaninc commented 8 months ago

Bug description

There is duplicating code of sidebar in application. https://github.com/one-zero-eight/InNoHassle-Website/blob/f1ce6f8304ebac3fb2f264a3aa6c682a41bf4a84/components/layout/Sidebar.tsx#L112-L178 https://github.com/one-zero-eight/InNoHassle-Website/blob/f1ce6f8304ebac3fb2f264a3aa6c682a41bf4a84/components/layout/Sidebar.tsx#L180-L229

To improve overall performance and reduce the size of html page, it would be very good to put everything in one aside element.

Suggested solution

It would be great to refactor the sidebar code. I believe that construction from scratch is the best way in this situation.

Additional context

No response