diff options
Diffstat (limited to 'src/App.js')
| -rw-r--r-- | src/App.js | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | import { Button, Heading, Link, Pane, Paragraph } from 'evergreen-ui'; | 1 | import { Button, Heading, Link, Pane, Paragraph } from 'evergreen-ui'; |
| 2 | import React, { useRef, useState } from 'react'; | 2 | import React, { useEffect, useRef, useState } from 'react'; |
| 3 | import { useTranslation } from 'react-i18next'; | 3 | import { useTranslation } from 'react-i18next'; |
| 4 | import logo from '../src/images/wifi.png'; | 4 | import logo from '../src/images/wifi.png'; |
| 5 | import { Settings } from './components/Settings'; | 5 | import { Settings } from './components/Settings'; |
| @@ -97,6 +97,13 @@ function App() { | |||
| 97 | firstLoad.current = false; | 97 | firstLoad.current = false; |
| 98 | }; | 98 | }; |
| 99 | 99 | ||
| 100 | useEffect(() => { | ||
| 101 | // Ensure the page direction is set properly on first load | ||
| 102 | if (htmlDirection() === 'rtl') { | ||
| 103 | html.style.direction = 'rtl'; | ||
| 104 | } | ||
| 105 | }); | ||
| 106 | |||
| 100 | return ( | 107 | return ( |
| 101 | <Pane> | 108 | <Pane> |
| 102 | <Pane display="flex"> | 109 | <Pane display="flex"> |
