-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Avatar] Migrate to emotion (#24114)
- Loading branch information
1 parent
7a3752e
commit d72eb5f
Showing
8 changed files
with
166 additions
and
101 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,15 @@ | ||
export interface AvatarClasses { | ||
root: string; | ||
colorDefault: string; | ||
circular: string; | ||
rounded: string; | ||
square: string; | ||
img: string; | ||
fallback: string; | ||
} | ||
|
||
declare const AvatarClasses: AvatarClasses; | ||
|
||
export function getAvatarUtilityClass(part: string): string; | ||
|
||
export default AvatarClasses; |
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,15 @@ | ||
export function getAvatarUtilityClass(name) { | ||
return `MuiAvatar-${name}`; | ||
} | ||
|
||
const avatarClasses = { | ||
root: getAvatarUtilityClass('root'), | ||
colorDefault: getAvatarUtilityClass('colorDefault'), | ||
circular: getAvatarUtilityClass('circular'), | ||
rounded: getAvatarUtilityClass('rounded'), | ||
square: getAvatarUtilityClass('square'), | ||
img: getAvatarUtilityClass('img'), | ||
fallback: getAvatarUtilityClass('fallback'), | ||
}; | ||
|
||
export default avatarClasses; |
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,2 +1,4 @@ | ||
export { default } from './Avatar'; | ||
export * from './Avatar'; | ||
export { default as avatarClasses } from './avatarClasses'; | ||
export * from './avatarClasses'; |
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 +1,3 @@ | ||
export { default } from './Avatar'; | ||
export { default as avatarClasses } from './avatarClasses'; | ||
export * from './avatarClasses'; |
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