From 6f5dac787fb87f00da49766f41a803acba93a5ef Mon Sep 17 00:00:00 2001 From: Debnil Sur Date: Tue, 10 Nov 2020 12:50:52 -0800 Subject: [PATCH 1/2] Initial commit --- .../components/molecules/BotCard/BotCard.js | 1 + .../molecules/PopoverMenu/PopoverMenu.js | 20 ++++++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gui/web/src/components/molecules/BotCard/BotCard.js b/gui/web/src/components/molecules/BotCard/BotCard.js index 9ffbf2eb1..69c0956ed 100644 --- a/gui/web/src/components/molecules/BotCard/BotCard.js +++ b/gui/web/src/components/molecules/BotCard/BotCard.js @@ -336,6 +336,7 @@ class BotCard extends Component {
- {this.props.enableOffers ?
Show Offers
:
Show Offers
} - {this.props.enableMarket ?
Show Market
:
Show Market
} - {this.props.enableEdit ?
Edit
:
Edit
} - {this.props.enableCopy ?
Copy
:
Copy
} - {this.props.enableDelete ?
Delete
:
Delete
} + {this.props.enableOffers ?
Show Offers
:
Show Offers
} + {this.props.enableMarket ?
Show Market
:
Show Market
} + {this.props.enableEdit ?
Edit
:
Edit
} + {this.props.enableCopy ?
Copy
:
Copy
} + {this.props.enableDelete ?
Delete
:
Delete
}
); From c10eb81b1be0f5c61bc0a53b1e84545ee384b07a Mon Sep 17 00:00:00 2001 From: Debnil Sur Date: Tue, 10 Nov 2020 14:21:39 -0800 Subject: [PATCH 2/2] Tweak onclick fn --- gui/web/src/components/molecules/PopoverMenu/PopoverMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/web/src/components/molecules/PopoverMenu/PopoverMenu.js b/gui/web/src/components/molecules/PopoverMenu/PopoverMenu.js index 7c4e36c16..4bfa47e4a 100644 --- a/gui/web/src/components/molecules/PopoverMenu/PopoverMenu.js +++ b/gui/web/src/components/molecules/PopoverMenu/PopoverMenu.js @@ -9,7 +9,7 @@ class PopoverMenu extends Component { defaultOnClick(actualOnClickFn) { actualOnClickFn() - this.props.alwaysOnClickFn() // this is the onClose passed into the props + this.props.alwaysOnClick() // this is the onClose passed into the props } render() {