Skip to content

Commit da487a4

Browse files
sakshamarora1ntarocco
authored andcommitted
lib: Make Banner components overridable
1 parent 0218fd1 commit da487a4

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/lib/authentication/pages/Login/Login.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ class Login extends Component {
247247
this.redirectIfAlreadyLoggedIn();
248248
return (
249249
<>
250-
<Banner />
250+
<Overridable id="Login.extras">
251+
<Banner />
252+
</Overridable>
251253
<LoginLayout
252254
hasError={hasError}
253255
errorHeader={errorHeader}

src/lib/routes/backoffice/BackOffice.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,16 @@ import { Notifications } from '@components/Notifications';
44
import PropTypes from 'prop-types';
55
import React, { Component } from 'react';
66
import BackOfficeRoutesSwitch from './BackOfficeRoutesSwitch';
7+
import Overridable from 'react-overridable';
78

89
export class BackOffice extends Component {
910
render() {
1011
const { location } = this.props;
1112
return (
1213
<>
13-
<Banner />
14+
<Overridable id="BackOffice.extras">
15+
<Banner />
16+
</Overridable>
1417
<div className="backoffice">
1518
<div className="bo-sidebar">
1619
<Sidebar location={location} />

src/lib/routes/frontsite/Frontsite.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export default class FrontSite extends Component {
3737
<ILSMenu />
3838
<Notifications className="compact" />
3939
<Container fluid className="fs-content">
40-
<Banner />
40+
<Overridable id="FrontSite.extras">
41+
<Banner />
42+
</Overridable>
4143
<Switch>
4244
<Route
4345
exact

0 commit comments

Comments
 (0)