From e40f07211f5f15dcb138e2520a76d13afd3c0cfd Mon Sep 17 00:00:00 2001
From: FifthWit <fifthwitbusiness@gmail.com>
Date: Thu, 30 Jan 2025 10:44:30 -0600
Subject: formatted with prettier

---
 frontend/src/pages/Rules.tsx | 56 +++++++++++++++++++++-----------------------
 1 file changed, 27 insertions(+), 29 deletions(-)

(limited to 'frontend/src/pages/Rules.tsx')

diff --git a/frontend/src/pages/Rules.tsx b/frontend/src/pages/Rules.tsx
index 9f57b7e..7a774bc 100644
--- a/frontend/src/pages/Rules.tsx
+++ b/frontend/src/pages/Rules.tsx
@@ -5,37 +5,35 @@ import { Helmet } from 'react-helmet';
 import '@css/Rules.css';
 
 const Rules: React.FC = () => {
+  const [rulesText, setRulesText] = React.useState<string>('');
 
-    const [rulesText, setRulesText] = React.useState<string>("");
+  React.useEffect(() => {
+    const fetchRules = async () => {
+      try {
+        const response = await fetch(
+          'https://raw.githubusercontent.com/pektezol/lphub/main/RULES.md'
+        );
+        if (!response.ok) {
+          throw new Error('Failed to fetch README');
+        }
+        const rulesText = await response.text();
+        setRulesText(rulesText);
+      } catch (error) {
+        console.error('Error fetching Rules:', error);
+      }
+      // setRulesText(rulesText)
+    };
+    fetchRules();
+  }, []);
 
-    React.useEffect(() => {
-        const fetchRules = async () => {
-            try {
-                const response = await fetch(
-                    'https://raw.githubusercontent.com/pektezol/lphub/main/RULES.md'
-                );
-                if (!response.ok) {
-                    throw new Error('Failed to fetch README');
-                }
-                const rulesText = await response.text();
-                setRulesText(rulesText);
-            } catch (error) {
-                console.error('Error fetching Rules:', error);
-            }
-            // setRulesText(rulesText)
-        };
-        fetchRules();
-    }, []);
-
-
-    return (
-        <main>
-            <Helmet>
-                <title>LPHUB | Rules</title>
-            </Helmet>
-            <ReactMarkdown>{rulesText}</ReactMarkdown>
-        </main>
-    );
+  return (
+    <main>
+      <Helmet>
+        <title>LPHUB | Rules</title>
+      </Helmet>
+      <ReactMarkdown>{rulesText}</ReactMarkdown>
+    </main>
+  );
 };
 
 export default Rules;
-- 
cgit v1.2.3

