chore: Move to prettier standard double quotes (#1309)

This commit is contained in:
Tom Moor
2020-06-20 13:59:15 -07:00
committed by GitHub
parent 2a3b9e2104
commit f43deb7940
444 changed files with 5988 additions and 5977 deletions

View File

@@ -1,9 +1,9 @@
// @flow
import * as React from 'react';
import { observer, inject } from 'mobx-react';
import styled from 'styled-components';
import Toast from './components/Toast';
import UiStore from '../../stores/UiStore';
import * as React from "react";
import { observer, inject } from "mobx-react";
import styled from "styled-components";
import Toast from "./components/Toast";
import UiStore from "../../stores/UiStore";
type Props = {
ui: UiStore,
@@ -37,4 +37,4 @@ const List = styled.ol`
z-index: 1000;
`;
export default inject('ui')(Toasts);
export default inject("ui")(Toasts);

View File

@@ -1,9 +1,9 @@
// @flow
import * as React from 'react';
import styled from 'styled-components';
import { darken } from 'polished';
import { fadeAndScaleIn } from 'shared/styles/animations';
import type { Toast as TToast } from '../../../types';
import * as React from "react";
import styled from "styled-components";
import { darken } from "polished";
import { fadeAndScaleIn } from "shared/styles/animations";
import type { Toast as TToast } from "../../../types";
type Props = {
onRequestClose: () => void,
@@ -33,7 +33,7 @@ class Toast extends React.Component<Props> {
const { toast, onRequestClose } = this.props;
const { action } = toast;
const message =
typeof toast.message === 'string'
typeof toast.message === "string"
? toast.message
: toast.message.toString();
@@ -41,11 +41,11 @@ class Toast extends React.Component<Props> {
<li>
<Container
onClick={action ? undefined : onRequestClose}
type={toast.type || 'success'}
type={toast.type || "success"}
>
<Message>{message}</Message>
{action && (
<Action type={toast.type || 'success'} onClick={action.onClick}>
<Action type={toast.type || "success"} onClick={action.onClick}>
{action.text}
</Action>
)}

View File

@@ -1,3 +1,3 @@
// @flow
import Toasts from './Toasts';
import Toasts from "./Toasts";
export default Toasts;