Skip to content

feat(region): Connect region components to store#416

Merged
jstoffan merged 3 commits intobox:masterfrom
jstoffan:add-region-redux
Apr 9, 2020
Merged

feat(region): Connect region components to store#416
jstoffan merged 3 commits intobox:masterfrom
jstoffan:add-region-redux

Conversation

@jstoffan
Copy link
Collaborator

@jstoffan jstoffan commented Apr 8, 2020

No description provided.

@jstoffan jstoffan requested a review from a team as a code owner April 8, 2020 18:19
@mickr
Copy link
Collaborator

mickr commented Apr 8, 2020

This approach looks good

@jstoffan jstoffan force-pushed the add-region-redux branch 2 times, most recently from 49ef259 to d107c51 Compare April 9, 2020 02:33
position: absolute;
top: 0;
top: 15px; // Padding on each page as provided by Preview SDK
bottom: 15px; // Padding on each page as provided by Preview SDK
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these value be put into a variable?

getPageNumber(pageEl: HTMLElement): string {
return pageEl.dataset.pageNumber || '1';
getPageNumber(pageEl: HTMLElement): number {
return parseInt(pageEl.dataset.pageNumber || '', 10) || 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

may be parseInt(pageEl.dataset.pageNumber || '1', 10)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, but the current form protects against NaN if pageNumber is a weird string for some reason. It seems minor either way.

@jstoffan jstoffan merged commit e4d8588 into box:master Apr 9, 2020
@jstoffan jstoffan deleted the add-region-redux branch April 9, 2020 21:50
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.

4 participants