remove unused code

This commit is contained in:
tarafanlin 2020-09-28 00:12:46 -07:00
parent 863e95a8fc
commit 5fe4d2f61d
2 changed files with 1 additions and 49 deletions

View File

@ -105,30 +105,6 @@ const STYLES_LINK = css`
}
`;
const STYLES_COPY_EMAIL = css`
display: inline;
`;
export const getServerSideProps = async (context) => {
return {
props: { ...context.query },
};
};
export function CopyEmail() {
const [copySuccess, setCopySuccess] = useState("");
function copyToClipboard() {
navigator.clipboard.writeText("abuse@filecoin.io");
setCopySuccess("Copied!");
}
return (
<div css={STYLES_COPY_EMAIL}>
<a onClick={copyToClipboard}>abuse@filecoin.io</a>
{copySuccess}
</div>
);
}
export default class GuidelinesPage extends React.Component {
render() {
const title = `Slate: Terms of Service`;

View File

@ -104,31 +104,7 @@ const STYLES_LINK = css`
}
`;
const STYLES_COPY_EMAIL = css`
display: inline;
`;
export const getServerSideProps = async (context) => {
return {
props: { ...context.query },
};
};
export function CopyEmail() {
const [copySuccess, setCopySuccess] = useState("");
function copyToClipboard() {
navigator.clipboard.writeText("abuse@filecoin.io");
setCopySuccess("Copied!");
}
return (
<div css={STYLES_COPY_EMAIL}>
<a onClick={copyToClipboard}>abuse@filecoin.io</a>
{copySuccess}
</div>
);
}
export default class GuidelinesPage extends React.Component {
export default class TermsPage extends React.Component {
render() {
const title = `Slate: Terms of Service`;
const description = "You must agree to our terms of service to use Slate.";