-
Notifications
You must be signed in to change notification settings - Fork 26
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
add loading animation to upload doc modal #654
base: Development
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,15 @@ const LoadingAnimation = ({ loadingItem, children }) => ( | |
padding: '20px' | ||
}} | ||
> | ||
<Paper elevation={2} sx={{ display: 'inline-block', mx: '2px', padding: '20px' }}> | ||
<Paper | ||
elevation={2} | ||
sx={{ | ||
display: 'inline-block', | ||
mx: '2px', | ||
padding: '20px', | ||
backgroundColor: 'background.tint' | ||
}} | ||
> | ||
Comment on lines
+36
to
+44
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While this works for this animation, it consequently affects other uses of this animation as well, such as when loading contacts or documents. The box is now gray rather than white. Not a huge deal or anything, just an unintended side effect. Best practice would be to carve out an exception for this. However, I'd like to do #643, which would refactor animations a tad anyway. |
||
<Typography variant="h5" component="h2" mb={2} align="center"> | ||
Loading {loadingItem}... | ||
</Typography> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't
loadingItem="file name"
still beloadingItem={file.name}
?