Fix some react warnings
Summary: React is printing errors saying not to use "Span", and booleans in html properties Reviewed By: danielbuechele Differential Revision: D15535593 fbshipit-source-id: e074137c89abfa69625b370087c9c18b579ff279
This commit is contained in:
committed by
Facebook Github Bot
parent
8c4e373dfc
commit
79902cd7cb
@@ -57,8 +57,10 @@ export default class Select extends Component<{
|
||||
id={this.selectID}
|
||||
onChange={this.onChange}
|
||||
className={className}>
|
||||
{Object.keys(options).map(key => (
|
||||
<option selected={key === selected}>{options[key]}</option>
|
||||
{Object.keys(options).map((key, index) => (
|
||||
<option key={index} selected={key === selected}>
|
||||
{options[key]}
|
||||
</option>
|
||||
))}
|
||||
</SelectMenu>
|
||||
);
|
||||
|
||||
@@ -140,7 +140,7 @@ type ManagedTableState = {|
|
||||
|};
|
||||
|
||||
const Container = styled(FlexColumn)(props => ({
|
||||
overflow: props.overflow ? 'scroll' : 'visible',
|
||||
overflow: props.canOverflow ? 'scroll' : 'visible',
|
||||
flexGrow: 1,
|
||||
}));
|
||||
|
||||
@@ -617,7 +617,7 @@ class ManagedTable extends React.Component<
|
||||
}
|
||||
|
||||
return (
|
||||
<Container overflow={horizontallyScrollable}>
|
||||
<Container canOverflow={horizontallyScrollable}>
|
||||
{hideHeader !== true && (
|
||||
<TableHead
|
||||
columnOrder={columnOrder}
|
||||
|
||||
Reference in New Issue
Block a user