aboutsummaryrefslogtreecommitdiffstats
path: root/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index cf0ebd2..2601080 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,5 +1,5 @@
1import { Button, Heading, Link, Pane, Paragraph } from 'evergreen-ui'; 1import { Button, Heading, Link, Pane, Paragraph } from 'evergreen-ui';
2import React, { useRef, useState } from 'react'; 2import React, { useEffect, useRef, useState } from 'react';
3import { useTranslation } from 'react-i18next'; 3import { useTranslation } from 'react-i18next';
4import logo from '../src/images/wifi.png'; 4import logo from '../src/images/wifi.png';
5import { Settings } from './components/Settings'; 5import { 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">