processed PR feedback

typo fix
add line end
This commit is contained in:
Nouman Tahir 2021-07-06 16:09:09 +05:00
parent c639d2c6f7
commit 1cc4795ef3
2 changed files with 6 additions and 5 deletions

View File

@ -32,11 +32,11 @@ class NotificationContainer extends Component {
const { isConnected } = this.props;
if (isConnected) {
this._getAvtivities();
this._getActivities();
}
}
_getAvtivities = (type = null, loadMore = false) => {
_getActivities = (type = null, loadMore = false) => {
const { lastNotificationId, notifications, endOfNotification } = this.state;
const since = loadMore ? lastNotificationId : null;
@ -151,7 +151,7 @@ class NotificationContainer extends Component {
(nextProps.username !== username && nextProps.username)
) {
this.setState({ endOfNotification: false }, () =>
this._getAvtivities(selectedFilter),
this._getActivities(selectedFilter),
);
}
}
@ -162,7 +162,7 @@ class NotificationContainer extends Component {
return (
<NotificationScreen
getActivities={this._getAvtivities}
getActivities={this._getActivities}
notifications={notifications}
navigateToNotificationRoute={this._navigateToNotificationRoute}
readAllNotification={this._readAllNotification}

View File

@ -10,4 +10,5 @@ const b64uLookup = {
export const b64uEnc = (str) =>
Buffer.from(str)
.toString('base64')
.replace(/(\+|\/|=)/g, (m) => b64uLookup[m]);
.replace(/(\+|\/|=)/g, (m) => b64uLookup[m]);