Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented sidebar (bunq/doc#75) #77

Merged
merged 7 commits into from
Nov 5, 2018
Merged

Implemented sidebar (bunq/doc#75) #77

merged 7 commits into from
Nov 5, 2018

Conversation

parrello
Copy link

@parrello parrello commented Nov 1, 2018

No description provided.

@parrello parrello self-assigned this Nov 1, 2018
@parrello parrello requested a review from melikesofta November 1, 2018 14:49
@parrello parrello requested a review from kojoru November 1, 2018 14:52
src/plugins/BunqLayoutPlugin/BunqLayoutPlugin.js Outdated Show resolved Hide resolved
src/plugins/BunqLayoutPlugin/BunqLayoutPlugin.js Outdated Show resolved Hide resolved
src/plugins/BunqLayoutPlugin/components/Sidebar/Sidebar.js Outdated Show resolved Hide resolved
src/scss/_sidebar.scss Outdated Show resolved Hide resolved
@parrello
Copy link
Author

parrello commented Nov 2, 2018

@melikesofta please check again

/**
* @returns {Node}
*/
renderSidebar (): Node {
Copy link

@melikesofta melikesofta Nov 5, 2018

Choose a reason for hiding this comment

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

I prefer to always have the original render() at the bottom of the file because I automatically look at the bottom when I'm looking for it. but your choice I guess, as long as you keep it consistent in the future

@parrello parrello changed the title Bunq/doc#75 sidebar Implemented sidebar [bunq/doc#75] Nov 5, 2018
@parrello parrello changed the title Implemented sidebar [bunq/doc#75] Implemented sidebar (bunq/doc#75) Nov 5, 2018
}

window.setTimeout(() => {
const scrollContainer = document.querySelector(".swagger-ui");

Choose a reason for hiding this comment

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

I think this is fine for this one usecase, but for later you might wanna checkout refs in react and how dom is manipulated, to better stay in the react paradigm and to not directly touch the real dom etc https://reactjs.org/docs/refs-and-the-dom.html#refs-and-finddomnode

Copy link
Author

Choose a reason for hiding this comment

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

in this case I went for this implementation because it matches the way Swagger does it, but you are right

@melikesofta
Copy link

@parrello left a few small comments, but good to go from my side!

@kojoru kojoru merged commit 5c5d4f6 into develop Nov 5, 2018
@kojoru kojoru deleted the bunq/doc#75_sidebar branch November 5, 2018 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants