-
Notifications
You must be signed in to change notification settings - Fork 273
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
Showing
10 changed files
with
161 additions
and
74 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
38 changes: 35 additions & 3 deletions
38
workspaces/website/src/components/Icons/CardIcons/ImageIcon/ImageIcon.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,9 +1,41 @@ | ||
/** | ||
* Module dependencies | ||
*/ | ||
import React from 'react'; | ||
|
||
const ImageIcon: React.FC<{icon?: string, alt?: string, filter?: string, borderRadius?: string}> = ({ icon, alt = "", filter, borderRadius }) => { | ||
/** | ||
* `Props` type. | ||
*/ | ||
|
||
type Props = { | ||
icon?: string, | ||
alt?: string, | ||
filter?: string, | ||
borderRadius?: string, | ||
}; | ||
|
||
|
||
/** | ||
* Export `ImageIcon` component. | ||
*/ | ||
|
||
const ImageIcon: React.FC<Props> = ({ | ||
icon, | ||
alt = "", | ||
filter, | ||
borderRadius, | ||
}) => { | ||
return ( | ||
<img style={{filter, borderRadius}} src={icon} alt={alt} /> | ||
<img | ||
style={{ | ||
borderRadius, | ||
filter, | ||
maxHeight: '400px' | ||
}} | ||
src={icon} | ||
alt={alt} | ||
/> | ||
) | ||
}; | ||
|
||
export default ImageIcon; | ||
export default ImageIcon; |