aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorFred Carlsen <fred@sjelfull.no>2018-12-11 19:49:16 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-11 19:55:58 +0800
commite001988dbe0046acd6adf0d9b1f7311e9611edf9 (patch)
tree9f2b95de3b60bc88ebcac0acf4e0465240300d25 /packages/website
parent54c9709bf0d6bc276d912e83a71245952b44cad9 (diff)
downloaddexon-sol-tools-e001988dbe0046acd6adf0d9b1f7311e9611edf9.tar
dexon-sol-tools-e001988dbe0046acd6adf0d9b1f7311e9611edf9.tar.gz
dexon-sol-tools-e001988dbe0046acd6adf0d9b1f7311e9611edf9.tar.bz2
dexon-sol-tools-e001988dbe0046acd6adf0d9b1f7311e9611edf9.tar.lz
dexon-sol-tools-e001988dbe0046acd6adf0d9b1f7311e9611edf9.tar.xz
dexon-sol-tools-e001988dbe0046acd6adf0d9b1f7311e9611edf9.tar.zst
dexon-sol-tools-e001988dbe0046acd6adf0d9b1f7311e9611edf9.zip
Pull in image from children
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/@next/components/image_loop.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/packages/website/ts/@next/components/image_loop.tsx b/packages/website/ts/@next/components/image_loop.tsx
index 8b3ee2eb9..2dc6c7aee 100644
--- a/packages/website/ts/@next/components/image_loop.tsx
+++ b/packages/website/ts/@next/components/image_loop.tsx
@@ -20,10 +20,8 @@ export class ImageLoop extends React.Component<Props> {
public componentDidMount(): void {
const domImage = React.Children.only(this.props.children);
- debugger;
-
this._img = new Image(1446, 407);
- this._img.src = domImage.src;
+ this._img.src = domImage.props.src;
this._ctx = this._canvas.current.getContext('2d');
this._img.onload = this.updateCanvas.bind(this);