From 4734fb3f72ac94655d171894bd4cdd5f79be694e Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sun, 7 Mar 2021 07:57:10 -0800 Subject: refactor to use useFetchPaste hook --- frontend/src/components/modals/PasswordModal.js | 3 +-- frontend/src/components/modals/shared.js | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) (limited to 'frontend/src/components/modals') diff --git a/frontend/src/components/modals/PasswordModal.js b/frontend/src/components/modals/PasswordModal.js index a829091..5c4ab87 100644 --- a/frontend/src/components/modals/PasswordModal.js +++ b/frontend/src/components/modals/PasswordModal.js @@ -1,7 +1,7 @@ import React, { useRef } from 'react'; import Modal from 'react-modal'; import { Password } from '../Inputs' -import {ModalHeader, Padding, modalStyles, Form} from './shared' +import {ModalHeader, modalStyles, Form} from './shared' import Error from '../Err'; import {SubmitButton} from "../Common/Button"; @@ -28,7 +28,6 @@ const PasswordModal = (props) => { value={props.value} onChange={props.onChange} /> - diff --git a/frontend/src/components/modals/shared.js b/frontend/src/components/modals/shared.js index 0336818..4d5987a 100644 --- a/frontend/src/components/modals/shared.js +++ b/frontend/src/components/modals/shared.js @@ -18,9 +18,4 @@ export const Form = styled.form` export const ModalHeader = styled.h3` font-weight: 700 -` - -export const Padding = styled.span` - content: ' '; - margin-right: 2em; ` \ No newline at end of file -- cgit v1.2.3