aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/PasteInfo.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-05-23 10:59:31 -0700
committerjackyzha0 <[email protected]>2020-05-23 10:59:31 -0700
commitf4cb08e7a1eaebf3c60506e3a4941c903619c448 (patch)
treea29777c693a02ec0b0bd2713979272f3b155e67f /frontend/src/components/PasteInfo.js
parentwip render dispatch (diff)
downloadctrl-v-f4cb08e7a1eaebf3c60506e3a4941c903619c448.tar.xz
ctrl-v-f4cb08e7a1eaebf3c60506e3a4941c903619c448.zip
fix more styling problems
Diffstat (limited to 'frontend/src/components/PasteInfo.js')
-rw-r--r--frontend/src/components/PasteInfo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/PasteInfo.js b/frontend/src/components/PasteInfo.js
index 9f0d3bf..0b4188d 100644
--- a/frontend/src/components/PasteInfo.js
+++ b/frontend/src/components/PasteInfo.js
@@ -2,7 +2,7 @@ import React from 'react';
import styled from 'styled-components'
import { useHistory } from 'react-router-dom';
import { ThemeInput } from './Inputs'
-import { exportComponentAsJPEG } from "react-component-export-image";
+import { exportComponentAsPNG } from "react-component-export-image";
const Bold = styled.span`
font-weight: 700
@@ -63,7 +63,7 @@ const PasteInfo = (props) => {
<Button
className="lt-shadow lt-hover"
type="button"
- onClick={() => exportComponentAsJPEG(props.compref, `paste-${props.hash}.png`)}>
+ onClick={() => exportComponentAsPNG(props.compref, `paste-${props.hash}.png`)}>
save png
</Button>
{renderable()}