From 712bf925f8ae84a5a2fee87b8aa3c969df48fd50 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sat, 16 May 2020 22:42:48 -0700 Subject: allow language saving --- frontend/src/components/PasteInfo.js | 1 + 1 file changed, 1 insertion(+) (limited to 'frontend/src/components/PasteInfo.js') diff --git a/frontend/src/components/PasteInfo.js b/frontend/src/components/PasteInfo.js index 5217901..b1abda6 100644 --- a/frontend/src/components/PasteInfo.js +++ b/frontend/src/components/PasteInfo.js @@ -56,6 +56,7 @@ const PasteInfo = (props) => { expires: {props.expiry} + {props.err} ); -- cgit v1.2.3 From 069a92c001f2f588417b649b31e4d473dfaaa75d Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Sat, 16 May 2020 22:54:55 -0700 Subject: remove lang input --- frontend/src/components/PasteInfo.js | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'frontend/src/components/PasteInfo.js') diff --git a/frontend/src/components/PasteInfo.js b/frontend/src/components/PasteInfo.js index b1abda6..ea4981c 100644 --- a/frontend/src/components/PasteInfo.js +++ b/frontend/src/components/PasteInfo.js @@ -1,7 +1,7 @@ import React from 'react'; import styled from 'styled-components' import { useHistory } from 'react-router-dom'; -import { LangInput, ThemeInput } from './Inputs' +import { ThemeInput } from './Inputs' const Bold = styled.span` font-weight: 700 @@ -19,6 +19,10 @@ const ButtonRow = styled.div` display: inline; ` +const SpacedText = styled.span` + margin-right: 1em; +` + const Flex = styled.div` float: right; display: flex; @@ -36,10 +40,6 @@ const PasteInfo = (props) => { return (
- { > view raw + + language: {props.lang} + + + expires: {props.expiry} + + + {props.err} + - expires: {props.expiry} - {props.err}
); -- cgit v1.2.3