Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

refactor: changed const name and removed css class #2126

Closed
wants to merge 25 commits into from

Conversation

maciekglowacki
Copy link

@maciekglowacki maciekglowacki commented Jun 15, 2020

There is const hambergerPages in Navbar.tsx file used to map pagesMap object to its values.With annotation that it should display hamburger menu on mobile devices.

However on mobile device a dropdown menu is shown instead of hamburger menu.

I would rename the const simply to pages.

There is a css class "nav-hamburger" but it does not change any styling of nav item.

That is my first pull request so if I should do some changes, please instruct me how to make them :).

@jsf-clabot
Copy link

jsf-clabot commented Jun 15, 2020

CLA assistant check
All committers have signed the CLA.

@gitpod-io
Copy link

gitpod-io bot commented Jun 15, 2020

@vercel
Copy link

vercel bot commented Jun 15, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/4x12ir1mw
✅ Preview: https://hospitalrun-frontend-git-fork-maciekglowacki-hamburger.hospitalrun.vercel.app

@matteovivona
Copy link
Contributor

Hi @maciekglowacki, thank you for your submission! What's issue fix (would you link it in PR description Fixes #xxx )?
Another thing: we ask that you all sign our CLA before we can accept your contribution.

@matteovivona matteovivona added the in progress indicates that issue/pull request is currently being worked on label Jun 16, 2020
@maciekglowacki
Copy link
Author

Hi @tehkapa. I signed CLA. I didn't know how to properly create an issue. Should I always create an issue before making a PR?

@matteovivona
Copy link
Contributor

Hi @tehkapa. I signed CLA. I didn't know how to properly create an issue. Should I always create an issue before making a PR?

Does your PR start with any existing issues? Also, there are some failing with tests (to be solved)

@matteovivona matteovivona requested review from jackcmeyer and a user and removed request for jackcmeyer June 16, 2020 12:13
@maciekglowacki
Copy link
Author

Does your PR start with any existing issues? Also, there are some failing with tests (to be solved)

No, it doesn't. I will have a look at the tests.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good eye for catching this inaccurate naming 🙂 It is planned to have a hamberger icon when available (please see HospitalRun/components#456).

src/components/Navbar.tsx Outdated Show resolved Hide resolved
scripts/checkMissingTranslations.ts Outdated Show resolved Hide resolved
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please checkout the current master for check-translations/index.ts so there will be no changes in this file.

@vercel
Copy link

vercel bot commented Jun 22, 2020

Deployment failed with the following error:

Resource is limited - try again after in 6 minutes (more than 32, code: "api-deployments-free-builds-per-hour").

@vercel vercel bot temporarily deployed to Preview June 23, 2020 04:48 Inactive
@vercel vercel bot requested a deployment to Preview June 23, 2020 05:03 Abandoned
@vercel
Copy link

vercel bot commented Jun 23, 2020

Deployment failed with the following error:

Resource is limited - try again after in 1 hour (more than 100, code: "api-deployments-free-per-day").

@vercel vercel bot requested a deployment to Preview June 23, 2020 08:29 Abandoned
@vercel
Copy link

vercel bot commented Jun 23, 2020

Deployment failed with the following error:

Resource is limited - try again after in 6 hours (more than 100, code: "api-deployments-free-per-day").

@vercel vercel bot requested a deployment to Preview June 23, 2020 10:00 Abandoned
@vercel
Copy link

vercel bot commented Jun 23, 2020

Deployment failed with the following error:

Resource is limited - try again after in 4 hours (more than 100, code: "api-deployments-free-per-day").

@vercel vercel bot temporarily deployed to Preview June 23, 2020 19:21 Inactive
@ghost
Copy link

ghost commented Jun 24, 2020

@maciekglowacki Hi, there's an update about the mobile dropdown menu! The hamberger icon has been added in the Components repo, and this PR is work-in-progress to apply it to the mobile navigation bar. May we ask you to review that PR and let us know what you think?

@lgtm-com
Copy link

lgtm-com bot commented Jun 24, 2020

This pull request introduces 1 alert when merging afb9657 into 99c2e16 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@jackcmeyer jackcmeyer marked this pull request as draft June 24, 2020 13:54
@ghost
Copy link

ghost commented Jun 24, 2020

@maciekglowacki Hi, there's an update about the mobile dropdown menu! The hamberger icon has been added in the Components repo, and this PR is work-in-progress to apply it to the mobile navigation bar. May we ask you to review that PR and let us know what you think?

Further update. The above mentioned PR has been merged with master.

@ghost ghost closed this Jun 24, 2020
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
in progress indicates that issue/pull request is currently being worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants