-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: widget loading animations polish (#3232)
* create use best trade hook for widgets * update comment in hook file * add loading states to input / output fields * update to not use imports from app * remove custom loading component * update var name and syncing detection logic * fix USD div type * simplify loading css, small changes
- Loading branch information
Showing
5 changed files
with
61 additions
and
11 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { css } from 'lib/theme' | ||
|
||
// need to use $loading as `loading` is a reserved prop | ||
export const loadingOpacityCss = css<{ $loading: boolean }>` | ||
filter: ${({ $loading }) => ($loading ? 'grayscale(1)' : 'none')}; | ||
opacity: ${({ $loading }) => ($loading ? '0.4' : '1')}; | ||
transition: opacity 0.2s ease-in-out; | ||
` |
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