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:
Jenn Giardino 2020-10-28 11:19:47 -04:00
parent ea09205a27
commit 80ee74f6ba

View file

@ -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>
);