Skip to content

Commit

Permalink
Rename isFavorite -> isBookmark
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycodes committed May 4, 2020
1 parent d298884 commit f8dc16c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/Views/BrowserTab/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1493,7 +1493,7 @@ export class BrowserTab extends PureComponent {
{strings('browser.reload')}
</Text>
</Button>
{!this.isFavorite() && (
{!this.isBookmark() && (
<Button onPress={this.addBookmark} style={styles.option}>
<View style={styles.optionIconWrapper}>
<Icon name="star" size={16} style={styles.optionIcon} />
Expand Down Expand Up @@ -1862,7 +1862,7 @@ export class BrowserTab extends PureComponent {
return activeTab === id;
};

isFavorite = () => {
isBookmark = () => {
const { bookmarks, navigation } = this.props;
const currentUrl = navigation.getParam('url', null);
return bookmarks.some(({ url }) => url === currentUrl);
Expand Down

0 comments on commit f8dc16c

Please sign in to comment.