This repository has been archived by the owner on Jan 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
909a8d9
commit 626bcce
Showing
13 changed files
with
105 additions
and
71 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
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,13 @@ | ||
import React, { forwardRef } from 'react'; | ||
import { default as MaterialUIAvatar, AvatarProps } from '@material-ui/core/Avatar'; | ||
|
||
// The default element type of MUI's Avatar is 'div' and we don't allow the change of this prop | ||
type AvatarRef = HTMLElementTagNameMap['div']; | ||
|
||
/* eslint-disable verdaccio/jsx-spread */ | ||
// eslint-disable-next-line react/display-name | ||
const Avatar = forwardRef<AvatarRef, AvatarProps>(function Avatar(props, ref) { | ||
return <MaterialUIAvatar {...props} ref={ref} />; | ||
}); | ||
|
||
export default Avatar; |
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 @@ | ||
export { default } from './Avatar'; |
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,12 +1,12 @@ | ||
import React, { forwardRef } from 'react'; | ||
import { default as MuiIconButton, IconButtonProps } from '@material-ui/core/IconButton'; | ||
import { default as MaterialUIIconButton, IconButtonProps } from '@material-ui/core/IconButton'; | ||
|
||
type IconButtonRef = HTMLElementTagNameMap['button']; | ||
|
||
/* eslint-disable verdaccio/jsx-spread */ | ||
// eslint-disable-next-line react/display-name | ||
const IconButton = forwardRef<IconButtonRef, IconButtonProps>(function IconButton(props, ref) { | ||
return <MuiIconButton {...props} ref={ref} />; | ||
return <MaterialUIIconButton {...props} ref={ref} />; | ||
}); | ||
|
||
export default IconButton; |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import React, { forwardRef } from 'react'; | ||
import { default as MuiTooltip, TooltipProps } from '@material-ui/core/Tooltip'; | ||
import { default as MaterialUITooltip, TooltipProps } from '@material-ui/core/Tooltip'; | ||
|
||
// The default element type of MUI's Tooltip is 'div' and the change of this prop is not allowed | ||
type TooltipRef = HTMLElementTagNameMap['div']; | ||
|
||
/* eslint-disable verdaccio/jsx-spread */ | ||
// eslint-disable-next-line react/display-name | ||
const Tooltip = forwardRef<TooltipRef, TooltipProps>(function ToolTip(props, ref) { | ||
return <MuiTooltip {...props} innerRef={ref} />; | ||
return <MaterialUITooltip {...props} innerRef={ref} />; | ||
}); | ||
|
||
export default Tooltip; |
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