From 169945b3eeb21dd3543bbb24b4deeb82ab510d89 Mon Sep 17 00:00:00 2001 From: Andriy Kashcha Date: Fri, 3 Apr 2020 00:26:57 -0700 Subject: [PATCH] added elm and rust All kudos go to @brandly --- README.md | 16 ++++++++++++---- src/destination.jsx | 3 +++ src/welcome.jsx | 12 ++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 0af4e319..46fa58b9 100644 --- a/README.md +++ b/README.md @@ -136,12 +136,20 @@ of [galactic-data](https://github.com/anvaka/galactic-data). demo -

Your graph?

- Open issue to request your own graph +

Rust Crates

+ + +
+ indexer | + demo -

Your graph?

- Open issue to request your own graph +

Elm

+ + +
+ indexer | + demo diff --git a/src/destination.jsx b/src/destination.jsx index c47a3fac..b38a6501 100644 --- a/src/destination.jsx +++ b/src/destination.jsx @@ -17,6 +17,9 @@ export default class Destination extends React.Component { let isHover = x.state ? x.state.hover : false; let imageSrc = prefix + props.media; if (isHover) imageSrc = imageSrc.replace(/_first\.png/, '_150.gif'); + if (props.static && props.dynamic) { + imageSrc = isHover ? props.dynamic : props.static; + } return ( + + + + );