aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/PasteInfo.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-22 23:39:35 -0700
committerjackyzha0 <[email protected]>2020-05-22 23:39:35 -0700
commitcdf8e036ff56281e9052fff7a688c6f32121428f (patch)
tree1a3b4db5ba9e875b97ab8bb234300e1ba2b168b6 /frontend/src/components/PasteInfo.js
parentswitch to styled components for raw renderer (diff)
downloadctrl-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.js6
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>