Fix styles for <Main> in App.js
`<Main>` doesn't really belong in App.js given the html it renders, but there's some additional thing happening with this component that requires it to be here to support tests. This update addresses the extra padding that it creates by being used at this level. Closes #17
This commit is contained in:
parent
dbc702575a
commit
00d81f0444
1 changed files with 2 additions and 4 deletions
|
|
@ -2,10 +2,8 @@ import PropTypes from 'prop-types';
|
|||
import React, { Component } from 'react';
|
||||
import { withRouter } from 'react-router-dom';
|
||||
import { connect } from 'react-redux';
|
||||
import {
|
||||
Main,
|
||||
} from '@redhat-cloud-services/frontend-components';
|
||||
import { Routes } from './Routes';
|
||||
import { Main } from '@redhat-cloud-services/frontend-components';
|
||||
import './App.scss';
|
||||
|
||||
class App extends Component {
|
||||
|
|
@ -30,7 +28,7 @@ class App extends Component {
|
|||
|
||||
render () {
|
||||
return (
|
||||
<Main>
|
||||
<Main style={ { marginLeft: 0, padding: 0 } }>
|
||||
<Routes childProps={ this.props } />
|
||||
</Main>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue