aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/pages
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2021-04-11 10:45:10 -0700
committerjackyzha0 <[email protected]>2021-04-11 10:45:10 -0700
commit3f0cdc02b275e24771226417c442125f74bcd8c1 (patch)
treecb260e22f9f92fb8e4afd6c05a26ebe62e804b1a /frontend/src/pages
parentbase next refactor (diff)
downloadctrl-v-3f0cdc02b275e24771226417c442125f74bcd8c1.tar.xz
ctrl-v-3f0cdc02b275e24771226417c442125f74bcd8c1.zip
safely remove style.css
Diffstat (limited to 'frontend/src/pages')
-rw-r--r--frontend/src/pages/_app.js1
-rw-r--r--frontend/src/pages/index.js8
2 files changed, 6 insertions, 3 deletions
diff --git a/frontend/src/pages/_app.js b/frontend/src/pages/_app.js
index 7e99f01..eb205e3 100644
--- a/frontend/src/pages/_app.js
+++ b/frontend/src/pages/_app.js
@@ -1,7 +1,6 @@
import React from 'react'
import ThemeProvider from "../theme/ThemeProvider";
import GlobalStyle from "../theme/GlobalStyle";
-import '../theme/style.css';
import {Watermark} from "../components/Watermark";
import styled from "styled-components";
diff --git a/frontend/src/pages/index.js b/frontend/src/pages/index.js
index 141ebac..36bcad7 100644
--- a/frontend/src/pages/index.js
+++ b/frontend/src/pages/index.js
@@ -10,6 +10,10 @@ import Markdown from '../components/renderers/Markdown'
import {Button, SubmitButton} from "../components/Common/Button";
import {newPaste} from "../http/shared";
+const Container = styled.form`
+ width: 100%;
+`
+
const Flex = styled.div`
display: flex;
flex-direction: row;
@@ -115,7 +119,7 @@ const NewPaste = () => {
}
return (
- <form onSubmit={handleSubmit}>
+ <Container onSubmit={handleSubmit}>
<PasteModal hash={hash} />
<Text
label="title"
@@ -143,7 +147,7 @@ const NewPaste = () => {
</div>
<br />
<Error ref={ErrorLabel} />
- </form>
+ </Container>
);
}