Sharing global styles

This commit is contained in:
Tom Moor
2017-10-26 22:42:08 -07:00
parent 4863680d86
commit fc45d6a180
53 changed files with 165 additions and 266 deletions

View File

@@ -7,7 +7,7 @@ import { observer, inject } from 'mobx-react';
import { withRouter, Prompt } from 'react-router';
import keydown from 'react-keydown';
import Flex from 'components/Flex';
import { color, layout } from 'styles/constants';
import { color, layout } from 'shared/styles/constants';
import {
collectionUrl,
updateDocumentUrl,

View File

@@ -8,7 +8,7 @@ import { Search } from 'js-search';
import ArrowKeyNavigation from 'boundless-arrow-key-navigation';
import _ from 'lodash';
import styled from 'styled-components';
import { size } from 'styles/constants';
import { size } from 'shared/styles/constants';
import Modal from 'components/Modal';
import Input from 'components/Input';

View File

@@ -4,7 +4,7 @@ import { observer } from 'mobx-react';
import invariant from 'invariant';
import _ from 'lodash';
import styled from 'styled-components';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
import Flex from 'components/Flex';
import GoToIcon from 'components/Icon/GoToIcon';

View File

@@ -2,8 +2,8 @@
import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import styled from 'styled-components';
import { pulsate } from 'styles/animations';
import { color } from 'styles/constants';
import { pulsate } from 'shared/styles/animations';
import { color } from 'shared/styles/constants';
import Flex from 'components/Flex';
import { randomInteger } from 'utils/random';

View File

@@ -2,7 +2,7 @@
import React, { Component } from 'react';
import SearchIcon from 'components/Icon/SearchIcon';
import Flex from 'components/Flex';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
import styled from 'styled-components';
class SearchField extends Component {

View File

@@ -1,3 +0,0 @@
// @flow
import SearchField from './SearchField';
export default SearchField;

View File

@@ -5,7 +5,7 @@ import { Link } from 'react-router-dom';
import styled from 'styled-components';
import ApiKeyRow from './components/ApiKeyRow';
import SettingsStore from './SettingsStore';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
import Flex from 'components/Flex';
import Button from 'components/Button';

View File

@@ -3,7 +3,7 @@ import React from 'react';
import { observable } from 'mobx';
import { observer } from 'mobx-react';
import styled from 'styled-components';
import { color } from 'styles/constants';
import { color } from 'shared/styles/constants';
type Props = {
id: string,

View File

@@ -1,3 +0,0 @@
// @flow
import ApiKeyRow from './ApiKeyRow';
export default ApiKeyRow;