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 | |
| parent | 66975ffb3b13d0f65c279b563baa444bc1255d8c (diff) | |
Removes direction prop from wificard (#177)
This was causing a runtime error and isn't necessary.
Fixes #172
| -rw-r--r-- | src/App.js | 1 | ||||
| -rw-r--r-- | src/components/WifiCard.js | 8 |
2 files changed, 1 insertions, 8 deletions
| @@ -114,7 +114,6 @@ function App() { | |||
| 114 | </Pane> | 114 | </Pane> |
| 115 | 115 | ||
| 116 | <WifiCard | 116 | <WifiCard |
| 117 | direction={htmlDirection()} | ||
| 118 | settings={settings} | 117 | settings={settings} |
| 119 | ssidError={errors.ssidError} | 118 | ssidError={errors.ssidError} |
| 120 | passwordError={errors.passwordError} | 119 | passwordError={errors.passwordError} |
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 | /> |
