mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-23 22:12:19 +03:00
hotfix: width adjustment
This commit is contained in:
parent
a9380e03ba
commit
9fa5a3829c
@ -46,7 +46,9 @@ export default class SceneHome extends React.Component {
|
||||
};
|
||||
|
||||
// TODO(jim): Refactor later.
|
||||
const slateButtons = [{ name: "Create slate", type: "SIDEBAR", value: "SIDEBAR_CREATE_SLATE" }];
|
||||
const slateButtons = [
|
||||
{ name: "Create slate", type: "SIDEBAR", value: "SIDEBAR_CREATE_SLATE" },
|
||||
];
|
||||
|
||||
// TODO(jim): Refactor later.
|
||||
const data = {
|
||||
@ -58,7 +60,7 @@ export default class SceneHome extends React.Component {
|
||||
width: "140px",
|
||||
type: "FILE_SIZE",
|
||||
},
|
||||
{ key: "type", name: "Type", type: "TEXT_TAG", width: "136px" },
|
||||
{ key: "type", name: "Type", type: "TEXT_TAG", width: "172px" },
|
||||
{
|
||||
key: "date",
|
||||
name: "Date uploaded",
|
||||
@ -121,7 +123,11 @@ export default class SceneHome extends React.Component {
|
||||
/>
|
||||
<System.H1 style={{ marginTop: 48 }}>Home</System.H1>
|
||||
{this.props.viewer.addresses[0] ? (
|
||||
<Section title="Wallet addresses" buttons={walletButtons} onAction={this.props.onAction}>
|
||||
<Section
|
||||
title="Wallet addresses"
|
||||
buttons={walletButtons}
|
||||
onAction={this.props.onAction}
|
||||
>
|
||||
<System.Table
|
||||
data={wallet}
|
||||
name="transaction"
|
||||
@ -131,7 +137,11 @@ export default class SceneHome extends React.Component {
|
||||
</Section>
|
||||
) : null}
|
||||
|
||||
<Section title="Slates" buttons={slateButtons} onAction={this.props.onAction}>
|
||||
<Section
|
||||
title="Slates"
|
||||
buttons={slateButtons}
|
||||
onAction={this.props.onAction}
|
||||
>
|
||||
<System.Table
|
||||
data={slates}
|
||||
name="slate"
|
||||
@ -141,7 +151,11 @@ export default class SceneHome extends React.Component {
|
||||
</Section>
|
||||
|
||||
{this.props.viewer.library[0] ? (
|
||||
<Section title="Recent data" buttons={dataButtons} onAction={this.props.onAction}>
|
||||
<Section
|
||||
title="Recent data"
|
||||
buttons={dataButtons}
|
||||
onAction={this.props.onAction}
|
||||
>
|
||||
<System.Table
|
||||
data={data}
|
||||
name="data"
|
||||
|
Loading…
Reference in New Issue
Block a user