aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/ui
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-07-25 14:21:39 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-07-25 14:21:39 +0800
commitb0fab3ea4a7238fca6538a85e251540cc4001040 (patch)
tree2eea919cd308948bbbeeac7ee6e25547a020fbed /packages/website/ts/components/ui
parent51fb6e6a23b38dffdbdaf7b7ac1b45b6783b7fa9 (diff)
downloaddexon-sol-tools-b0fab3ea4a7238fca6538a85e251540cc4001040.tar
dexon-sol-tools-b0fab3ea4a7238fca6538a85e251540cc4001040.tar.gz
dexon-sol-tools-b0fab3ea4a7238fca6538a85e251540cc4001040.tar.bz2
dexon-sol-tools-b0fab3ea4a7238fca6538a85e251540cc4001040.tar.lz
dexon-sol-tools-b0fab3ea4a7238fca6538a85e251540cc4001040.tar.xz
dexon-sol-tools-b0fab3ea4a7238fca6538a85e251540cc4001040.tar.zst
dexon-sol-tools-b0fab3ea4a7238fca6538a85e251540cc4001040.zip
Use our image component in mission
Diffstat (limited to 'packages/website/ts/components/ui')
-rw-r--r--packages/website/ts/components/ui/image.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/website/ts/components/ui/image.tsx b/packages/website/ts/components/ui/image.tsx
index c4ff93531..c8d39352b 100644
--- a/packages/website/ts/components/ui/image.tsx
+++ b/packages/website/ts/components/ui/image.tsx
@@ -5,9 +5,11 @@ export interface ImageProps {
className?: string;
src?: string;
fallbackSrc?: string;
- height?: string | number;
borderRadius?: string;
width?: string | number;
+ height?: string | number;
+ maxWidth?: string | number;
+ maxHeight?: string | number;
}
interface ImageState {
imageLoadFailed: boolean;
@@ -29,6 +31,8 @@ export class Image extends React.Component<ImageProps, ImageState> {
src={src}
style={{
borderRadius: this.props.borderRadius,
+ maxWidth: this.props.maxWidth,
+ maxHeight: this.props.maxHeight,
}}
height={this.props.height}
width={this.props.width}