hotfix: width adjustment

This commit is contained in:
@wwwjim 2020-08-10 20:32:14 -07:00
parent a9380e03ba
commit 9fa5a3829c

View File

@ -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"