From 3e8500d466b641ef34c24f8b0de8163a44ba7a9e Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Fri, 5 Mar 2021 22:17:18 -0800 Subject: refactoring css --- frontend/src/components/NewPaste.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'frontend/src/components/NewPaste.js') diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js index a8405b8..9447611 100644 --- a/frontend/src/components/NewPaste.js +++ b/frontend/src/components/NewPaste.js @@ -1,5 +1,5 @@ import React, { useEffect, useState, useRef } from 'react'; -import { TitleInput, PasteInput } from './Inputs' +import { Text, Code } from './Inputs' import OptionsContainer from './Options' import Error from './Err' import { PostNewPaste } from '../helpers/httpHelper' @@ -78,7 +78,7 @@ const NewPaste = () => { } function renderPreview() { - const pasteInput = { setContent(e.target.value) }} content={content} maxLength="100000" @@ -129,7 +129,8 @@ const NewPaste = () => { return (
- {setTitle(e.target.value)}} value={title} maxLength="100" -- cgit v1.2.3