diff options
Diffstat (limited to 'web/src/js/components/footer.js')
-rw-r--r-- | web/src/js/components/footer.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/web/src/js/components/footer.js b/web/src/js/components/footer.js index 7d313b02..e2d96288 100644 --- a/web/src/js/components/footer.js +++ b/web/src/js/components/footer.js @@ -6,13 +6,15 @@ Footer.propTypes = { }; export default function Footer({ settings }) { - const mode = settings.mode; - const intercept = settings.intercept; + const {mode, intercept} = settings; return ( <footer> - {mode && mode != "regular" ? <span className="label label-success">{mode} mode</span> : null} - - {intercept ? <span className="label label-success">Intercept: {intercept}</span> : null} + {mode && mode != "regular" && ( + <span className="label label-success">{mode} mode</span> + )} + {intercept && ( + <span className="label label-success">Intercept: {intercept}</span> + )} </footer> ); } |