From 263ef8b5fd9f4e3d41ead98e052e9ec1a8f548ca Mon Sep 17 00:00:00 2001 From: Jan Rochalski Date: Mon, 10 Jun 2019 07:53:53 +0200 Subject: [PATCH] chore/and operator instead of ternary operator (#2064) --- content/docs/accessibility.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/docs/accessibility.md b/content/docs/accessibility.md index 4b202fe4..61a5a8bc 100644 --- a/content/docs/accessibility.md +++ b/content/docs/accessibility.md @@ -282,13 +282,13 @@ class OuterClickExample extends React.Component { return (
- {this.state.isOpen ? ( + {this.state.isOpen && ( - ) : null} + )}
); } @@ -348,13 +348,13 @@ class BlurExample extends React.Component { aria-expanded={this.state.isOpen}> Select an option - {this.state.isOpen ? ( + {this.state.isOpen && ( - ) : null} + )} ); }