Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Export StyledMain instead to add additional styles from Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlisa committed Apr 14, 2021
1 parent e3800b6 commit 5305c41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/teleport/src/Main/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ export function Main(props: State) {
<RouterDOM.Switch>
<Redirect exact={true} from={cfg.routes.root} to={indexRoute} />
</RouterDOM.Switch>
<VerticalSplit className="teleport-main">
<StyledMain>
<SideNav />
<HorizontalSplit>
<TopBar />
<Switch>{$features}</Switch>
</HorizontalSplit>
</VerticalSplit>
</StyledMain>
</>
);
}

const VerticalSplit = styled.div`
export const StyledMain = styled.div`
width: 100%;
height: 100%;
display: flex;
Expand Down
3 changes: 2 additions & 1 deletion packages/teleport/src/Main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ limitations under the License.
*/

import { hot } from 'react-hot-loader/root';
import Main from './Main';
import Main, { StyledMain } from './Main';

export { StyledMain };
export default hot(Main);

0 comments on commit 5305c41

Please sign in to comment.