You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BaseLayoutHeader stores all private and public header buttons in a single array of objects called headers. Each header has a boolean public indicating whether the button is for public or private use.
Maintaining the headers array is messy because public and private buttons are all mixed up in one array.
We should refactor the headers array into two arrays, publicHeaders and privateHeaders and remove the boolean public. Instead, if a user is logged in, we should just show the privateHeaders, otherwise the publicHeaders.
The text was updated successfully, but these errors were encountered:
BaseLayoutHeader stores all private and public header buttons in a single array of objects called
headers
. Each header has a booleanpublic
indicating whether the button is for public or private use.Maintaining the
headers
array is messy because public and private buttons are all mixed up in one array.We should refactor the
headers
array into two arrays,publicHeaders
andprivateHeaders
and remove the booleanpublic
. Instead, if a user is logged in, we should just show theprivateHeaders
, otherwise thepublicHeaders
.The text was updated successfully, but these errors were encountered: