boolean-uk / team-dev-frontend-client

1 stars 11 forks source link

Remove useless buttons from header #230

Closed lucianosimoni closed 1 year ago

lucianosimoni commented 1 year ago

The buttons Home Profile and Add Cohort on the Header. Must be removed. Check for other issues that may be working with the Header.js structure.

Todos

  1. Inside the Header.js, on the return of the function, there is <Stack> element.
    • The last Button inside this Stack is the logout button. Take it out of the Stack (Making it a sibling of Stack)
  2. Remove <Stack> completely after taking the Logout button outside the stack.
  3. Remove imports from Stack and Link elements. - Take care to only remove those 2! It must be done because the other buttons are not necessary, so if there is only one button, no need for a stack element as well.

Last Todo!

Add the companyName atribute to where the <Header> is being called in the pages: CohortsPageTeacher.js; StudentsPage.js; ProfilePage.js; ProfileEdit.js. Check page PostsPage.js to see how it was implemented in there. The same companyName must be done on the pages above.

Image