diff options
| author | Ahmed Tarek <ahmed.tokyo1@gmail.com> | 2021-07-29 19:28:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-29 10:28:35 -0700 |
| commit | 3fa070c7ace0edb78d3048f819c5286965fdd458 (patch) | |
| tree | 5ca7bf79aabec1dda11a55b04cfbf293e76eb7c9 /src/components | |
| parent | 746dcaecbae228d831049284d3d58b69d75ec241 (diff) | |
🐛 fix rtl direction bugs (#124)
* :bug: fix rtl direction bugs
* fix conflicts
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Card.js | 76 |
1 files changed, 40 insertions, 36 deletions
diff --git a/src/components/Card.js b/src/components/Card.js index ee9d8d4..856085f 100644 --- a/src/components/Card.js +++ b/src/components/Card.js | |||
| @@ -164,42 +164,46 @@ export const Card = ({ direction = 'ltr' }) => { | |||
| 164 | </div> | 164 | </div> |
| 165 | 165 | ||
| 166 | <div className="no-print"> | 166 | <div className="no-print"> |
| 167 | <label>{t('wifi.password.encryption')}:</label> | 167 | <label> |
| 168 | <input | 168 | {t('wifi.password.encryption')}:{direction === 'rtl' ? ' ' : ''} |
| 169 | type="radio" | 169 | </label> |
| 170 | name="encrypt-select" | 170 | <span dir="ltr"> |
| 171 | id="encrypt-none" | 171 | <input |
| 172 | value="nopass" | 172 | type="radio" |
| 173 | onChange={(e) => { | 173 | name="encrypt-select" |
| 174 | setNetwork({ | 174 | id="encrypt-none" |
| 175 | ...network, | 175 | value="nopass" |
| 176 | encryptionMode: e.target.value, | 176 | onChange={(e) => { |
| 177 | password: '', | 177 | setNetwork({ |
| 178 | }); | 178 | ...network, |
| 179 | }} | 179 | encryptionMode: e.target.value, |
| 180 | /> | 180 | password: '', |
| 181 | <label htmlFor="encrypt-none">None</label> | 181 | }); |
| 182 | <input | 182 | }} |
| 183 | type="radio" | 183 | /> |
| 184 | name="encrypt-select" | 184 | <label htmlFor="encrypt-none">None</label> |
| 185 | id="encrypt-wpa-wpa2-wpa3" | 185 | <input |
| 186 | value="WPA" | 186 | type="radio" |
| 187 | onChange={(e) => | 187 | name="encrypt-select" |
| 188 | setNetwork({ ...network, encryptionMode: e.target.value }) | 188 | id="encrypt-wpa-wpa2-wpa3" |
| 189 | } | 189 | value="WPA" |
| 190 | defaultChecked | 190 | onChange={(e) => |
| 191 | /> | 191 | setNetwork({ ...network, encryptionMode: e.target.value }) |
| 192 | <label htmlFor="encrypt-wpa-wpa2-wpa3">WPA/WPA2/WPA3</label> | 192 | } |
| 193 | <input | 193 | defaultChecked |
| 194 | type="radio" | 194 | /> |
| 195 | name="encrypt-select" | 195 | <label htmlFor="encrypt-wpa-wpa2-wpa3">WPA/WPA2/WPA3</label> |
| 196 | id="encrypt-wep" | 196 | <input |
| 197 | value="WEP" | 197 | type="radio" |
| 198 | onChange={(e) => | 198 | name="encrypt-select" |
| 199 | setNetwork({ ...network, encryptionMode: e.target.value }) | 199 | id="encrypt-wep" |
| 200 | } | 200 | value="WEP" |
| 201 | /> | 201 | onChange={(e) => |
| 202 | <label htmlFor="encrypt-wep">WEP</label> | 202 | setNetwork({ ...network, encryptionMode: e.target.value }) |
| 203 | } | ||
| 204 | /> | ||
| 205 | <label htmlFor="encrypt-wep">WEP</label> | ||
| 206 | </span> | ||
| 203 | </div> | 207 | </div> |
| 204 | </div> | 208 | </div> |
| 205 | </div> | 209 | </div> |
