View
Summary: _typescript_ Reviewed By: passy, bnelo12 Differential Revision: D16830062 fbshipit-source-id: 19742e156c138ab867bb0e9f40dc140f1e98dec9
This commit is contained in:
committed by
Facebook Github Bot
parent
8f05ea5018
commit
68271e2017
@@ -9,7 +9,7 @@ import ErrorBlock from './ErrorBlock.js';
|
|||||||
import {Component} from 'react';
|
import {Component} from 'react';
|
||||||
import Heading from './Heading.js';
|
import Heading from './Heading.js';
|
||||||
import Button from './Button.js';
|
import Button from './Button.js';
|
||||||
import View from './View.js';
|
import View from './View.tsx';
|
||||||
import styled from '../styled/index.js';
|
import styled from '../styled/index.js';
|
||||||
|
|
||||||
const ErrorBoundaryContainer = styled(View)({
|
const ErrorBoundaryContainer = styled(View)({
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import View from './View.js';
|
import View from './View.tsx';
|
||||||
import styled from '../styled/index.js';
|
import styled from '../styled/index.js';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import View from './View.js';
|
import View from './View.tsx';
|
||||||
import styled from '../styled/index.js';
|
import styled from '../styled/index.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,9 +5,14 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import styled from '../styled/index.js';
|
import styled from 'react-emotion';
|
||||||
|
|
||||||
const View = styled('div')(props => ({
|
type Props = {
|
||||||
|
grow?: boolean;
|
||||||
|
scrollable?: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
const View = styled('div')((props: Props) => ({
|
||||||
height: props.grow ? '100%' : 'auto',
|
height: props.grow ? '100%' : 'auto',
|
||||||
overflow: props.scrollable ? 'auto' : 'visible',
|
overflow: props.scrollable ? 'auto' : 'visible',
|
||||||
position: 'relative',
|
position: 'relative',
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
import FlexColumn from './FlexColumn.js';
|
import FlexColumn from './FlexColumn.js';
|
||||||
import {Component} from 'react';
|
import {Component} from 'react';
|
||||||
import View from './View.js';
|
import View from './View.tsx';
|
||||||
import styled from '../styled/index.js';
|
import styled from '../styled/index.js';
|
||||||
|
|
||||||
const Inner = styled(FlexColumn)(({height}) => ({
|
const Inner = styled(FlexColumn)(({height}) => ({
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export {
|
|||||||
} from './components/desktop-toolbar.tsx';
|
} from './components/desktop-toolbar.tsx';
|
||||||
|
|
||||||
// utility elements
|
// utility elements
|
||||||
export {default as View} from './components/View.js';
|
export {default as View} from './components/View.tsx';
|
||||||
export {default as ViewWithSize} from './components/ViewWithSize.js';
|
export {default as ViewWithSize} from './components/ViewWithSize.js';
|
||||||
export {default as Block} from './components/Block.js';
|
export {default as Block} from './components/Block.js';
|
||||||
export {default as FocusableBox} from './components/FocusableBox.js';
|
export {default as FocusableBox} from './components/FocusableBox.js';
|
||||||
|
|||||||
Reference in New Issue
Block a user