Skip to content

Commit

Permalink
fix: calendar next page, improve scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Nov 28, 2024
1 parent 050cb04 commit 5907ed2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const useStyles = makeStyles()((theme) => ({
width: '100%',
overflowY: 'scroll',
position: 'relative',
overscrollBehavior: 'contain',
gap: '10px',
scrollbarWidth: 'none',
'&::-webkit-scrollbar': {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const useStyles = makeStyles()((theme) => ({
width: '100%',
overflowY: 'scroll',
position: 'relative',
overscrollBehavior: 'contain',
gap: '10px',
scrollbarWidth: 'none',
'&::-webkit-scrollbar': {
Expand Down
4 changes: 2 additions & 2 deletions packages/web3-providers/src/Calendar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class Calendar {
return createPageable(
events,
indicator,
createNextIndicator(indicator, next && next !== '0' ? next : undefined),
next && next !== '0' ? createNextIndicator(indicator, next) : undefined,
)
}
static async getEventList(start_date: number, end_date: number, indicator?: PageIndicator) {
Expand All @@ -97,7 +97,7 @@ export class Calendar {
return createPageable(
events,
indicator,
createNextIndicator(indicator, next && next !== '0' ? next : undefined),
next && next !== '0' ? createNextIndicator(indicator, next) : undefined,
)
}
static async getAvailableDates(type: EventProvider, start_date: number, end_date: number) {
Expand Down

0 comments on commit 5907ed2

Please sign in to comment.