diff options
| author | Ben Woodward <ben@bdw.to> | 2021-08-06 13:44:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-06 13:44:14 -0700 |
| commit | 4702eb67aae29980301df7544622ea39f7b25d8a (patch) | |
| tree | 983b301b619f62692bf725347799b6343950b534 /src/components/WifiCard.js | |
| parent | 66975ffb3b13d0f65c279b563baa444bc1255d8c (diff) | |
Removes direction prop from wificard (#177)
This was causing a runtime error and isn't necessary.
Fixes #172
Diffstat (limited to 'src/components/WifiCard.js')
| -rw-r--r-- | src/components/WifiCard.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/components/WifiCard.js b/src/components/WifiCard.js index 645dfa1..6f99fd7 100644 --- a/src/components/WifiCard.js +++ b/src/components/WifiCard.js | |||
| @@ -77,13 +77,7 @@ export const WifiCard = (props) => { | |||
| 77 | > | 77 | > |
| 78 | <QRCode | 78 | <QRCode |
| 79 | className="qrcode" | 79 | className="qrcode" |
| 80 | style={ | 80 | style={{ padding: '1em' }} |
| 81 | !props.settings.portrait | ||
| 82 | ? props.direction === 'ltr' | ||
| 83 | ? { paddingRight: '1em' } | ||
| 84 | : { paddingLeft: '1em' } | ||
| 85 | : {} | ||
| 86 | } | ||
| 87 | value={qrvalue} | 81 | value={qrvalue} |
| 88 | size={150} | 82 | size={150} |
| 89 | /> | 83 | /> |
