Formatting updates

This commit is contained in:
uonai 2020-07-08 22:35:54 -05:00
parent 770ea69f06
commit 22d43a23b9
2 changed files with 21 additions and 21 deletions

View File

@ -1,10 +1,10 @@
import * as React from 'react'; import * as React from "react";
import * as Strings from '~/common/strings'; import * as Strings from "~/common/strings";
import * as Constants from '~/common/constants'; import * as Constants from "~/common/constants";
import * as SVG from '~/components/system/svg'; import * as SVG from "~/components/system/svg";
import * as System from '~/components/system'; import * as System from "~/components/system";
import { css } from '@emotion/react'; import { css } from "@emotion/react";
const STYLES_FILE_HIDDEN = css` const STYLES_FILE_HIDDEN = css`
height: 1px; height: 1px;
@ -44,17 +44,17 @@ const STYLES_IMAGE_PREVIEW = css`
`; `;
const SELECT_MENU_OPTIONS = [ const SELECT_MENU_OPTIONS = [
{ value: '1', name: 'Anywhere' }, { value: "1", name: "Anywhere" },
{ value: '2', name: 'China' }, { value: "2", name: "China" },
{ value: '3', name: 'Russia' }, { value: "3", name: "Russia" },
{ value: '4', name: 'USA' }, { value: "4", name: "USA" },
]; ];
const SELECT_MENU_MAP = { const SELECT_MENU_MAP = {
'1': 'Anywhere', "1": "Anywhere",
'2': 'China', "2": "China",
'3': 'Russia', "3": "Russia",
'4': 'USA', "4": "USA",
}; };
export default class SidebarFileStorageDeal extends React.Component { export default class SidebarFileStorageDeal extends React.Component {
@ -70,7 +70,7 @@ export default class SidebarFileStorageDeal extends React.Component {
let file = e.target.files[0]; let file = e.target.files[0];
if (!file) { if (!file) {
alert('Something went wrong'); alert("Something went wrong");
return; return;
} }
@ -79,16 +79,16 @@ export default class SidebarFileStorageDeal extends React.Component {
_handleMakeDeal = async (src) => { _handleMakeDeal = async (src) => {
const options = { const options = {
method: 'POST', method: "POST",
credentials: 'include', credentials: "include",
headers: { headers: {
Accept: 'application/json', Accept: "application/json",
'Content-Type': 'application/json', "Content-Type": "application/json",
}, },
body: JSON.stringify({ src }), body: JSON.stringify({ src }),
}; };
const response = await fetch('/_/deals/storage', options); const response = await fetch("/_/deals/storage", options);
const json = await response.json(); const json = await response.json();
return json; return json;
}; };

View File

@ -90,7 +90,7 @@ const STYLES_ITEM = css`
justify-content: center; justify-content: center;
font-size: 12px; font-size: 12px;
letter-spacing: 0.2px; letter-spacing: 0.2px;
font-family: "inter-semi-bold"; font-family: ${Constants.font.semiBold};
transition: 200ms ease all; transition: 200ms ease all;
cursor: pointer; cursor: pointer;
background-color: ${Constants.system.brand}; background-color: ${Constants.system.brand};