From 7d4029480e204ec8e71203f0508009f7dd93e0f7 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Sat, 19 Sep 2020 06:48:37 -0700 Subject: [PATCH] Remove feature flag --- src/UploadButton.js | 5 ----- src/constants.js | 1 - 2 files changed, 6 deletions(-) diff --git a/src/UploadButton.js b/src/UploadButton.js index 3345000a..978dc7dc 100644 --- a/src/UploadButton.js +++ b/src/UploadButton.js @@ -2,7 +2,6 @@ import React from "react"; import { useSelector } from "react-redux"; import { useActionCreator } from "./hooks"; import * as Actions from "./redux/actionCreators"; -import { SHOW_UPLOAD } from "./constants"; import UploadIcon from "./components/icons/UploadIcon"; import CloseIcon from "./components/icons/CloseIcon"; import * as Selectors from "./redux/selectors"; @@ -12,10 +11,6 @@ function UploadButton() { const closeUploadFiles = useActionCreator(Actions.closeUploadFiles); const requestedUploadPage = useActionCreator(Actions.requestedUploadPage); - if (!SHOW_UPLOAD) { - // return null; - } - const style = { paddingLeft: "0.2rem", paddingRight: "0.2rem", diff --git a/src/constants.js b/src/constants.js index 79afdd0c..f85b5432 100644 --- a/src/constants.js +++ b/src/constants.js @@ -9,6 +9,5 @@ export const S3_SCREENSHOT_CDN = "https://s3.amazonaws.com/cdn.webampskins.org"; export const SCREENSHOT_CDN = "https://cdn.webampskins.org"; export const SKIN_CDN = "https://cdn.webampskins.org"; export const API_URL = "https://api.webampskins.org"; -export const SHOW_UPLOAD = window.location.hash.includes("upload"); export const HEADING_HEIGHT = 46; export const CHUNK_SIZE = 300;