-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Improve page loading * fix: Fix a initialize loading * feat: Separate loading states * feat: Separate loading states * fix: Fix loading pools condition * feat: Change token list loading condition * feat: Memorized scroll information * refactor: Remove console log * fix: fetch position API condition * feat: Add fetching bins at mouse over event * fix: Fix a build error * fix: Memorize earn page scroll * fix: Fix a load more state * fix: Fix a API Response * fix: Fix a loading bins * fix: Fix api error to default value
- Loading branch information
Showing
108 changed files
with
2,490 additions
and
1,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 26 additions & 3 deletions
29
packages/web/src/components/common/loading-spinner/LoadingSpinner.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,30 @@ | ||
import { wrapper } from "./LoadingSpinner.styles"; | ||
import { LoadingSpinnerWrapper } from "./LoadingSpinner.styles"; | ||
|
||
const LoadingSpinner = ({className} : {className?: string}) => { | ||
return <div css={wrapper} className={className} />; | ||
const LOADING_SIZE_MAP = { | ||
DEFAULT: { | ||
container: 72, | ||
circle: 60, | ||
mobileContainer: 60, | ||
mobileCircle: 48, | ||
}, | ||
SMALL: { | ||
container: 30, | ||
circle: 22, | ||
mobileContainer: 30, | ||
mobileCircle: 22, | ||
}, | ||
} as const; | ||
|
||
const LoadingSpinner = ({ | ||
className, | ||
size = "DEFAULT", | ||
}: { | ||
className?: string; | ||
size?: "DEFAULT" | "SMALL"; | ||
}) => { | ||
return ( | ||
<LoadingSpinnerWrapper className={className} {...LOADING_SIZE_MAP[size]} /> | ||
); | ||
}; | ||
|
||
export default LoadingSpinner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.