diff options
| author | jackyzha0 <[email protected]> | 2020-05-22 23:39:35 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-22 23:39:35 -0700 |
| commit | cdf8e036ff56281e9052fff7a688c6f32121428f (patch) | |
| tree | 1a3b4db5ba9e875b97ab8bb234300e1ba2b168b6 /frontend/src/components/PasteInfo.js | |
| parent | switch to styled components for raw renderer (diff) | |
| download | ctrl-v-cdf8e036ff56281e9052fff7a688c6f32121428f.tar.xz ctrl-v-cdf8e036ff56281e9052fff7a688c6f32121428f.zip | |
add preview panel
Diffstat (limited to 'frontend/src/components/PasteInfo.js')
| -rw-r--r-- | frontend/src/components/PasteInfo.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/frontend/src/components/PasteInfo.js b/frontend/src/components/PasteInfo.js index 28141ac..9cf4da3 100644 --- a/frontend/src/components/PasteInfo.js +++ b/frontend/src/components/PasteInfo.js @@ -37,9 +37,7 @@ const PasteInfo = (props) => { history.push(redirUrl); } - const redirRender = () => { - const redirUrl = `/render/${props.hash}` - history.push(redirUrl); + const render = () => { } const renderable = () => { @@ -48,7 +46,7 @@ const PasteInfo = (props) => { <Button className="lt-shadow lt-hover" type="button" - onClick={redirRender} + onClick={render} > render </Button> |