Skip to content

Commit

Permalink
Fix styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
elarsaks committed Aug 3, 2023
1 parent b5eaf66 commit ee092a8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 156 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Full Stack Deployment
name: Deploy Rect Hooks App

on:
push:
Expand Down
145 changes: 0 additions & 145 deletions src/App.css

This file was deleted.

4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "./App.css";
import app from "./styles/App.module.css";
import { BrowserRouter, Navigate, Route, Routes } from "react-router-dom";

import UseCallback from "./pages/UseCallback";
Expand All @@ -17,7 +17,7 @@ export default function App() {

return (
<BrowserRouter basename={baseUrl}>
<div className="App">
<div className={app["App"]}>
<AppHeader />
<Routes>
<Route>
Expand Down
15 changes: 8 additions & 7 deletions src/components/AppHeader.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React from "react";
import React, { useState, useEffect } from "react";
import { useNavigate, useLocation } from "react-router-dom";
import logo from "../logo.svg";
import styles from "./AppHeader.module.css";
import header from "../styles/AppHeader.module.css";
import app from "../styles/App.module.css";

export default function AppHeader() {
const navigate = useNavigate();
Expand All @@ -18,14 +19,14 @@ export default function AppHeader() {
}, [location]);

return (
<div className={styles["App-header"]}>
<div className={styles["logo-title"]}>
<img src={logo} className={styles["App-logo"]} alt="logo" />
<h1 className={styles["header-content"]}>React Hooks</h1>
<div className={header["App-header"]}>
<div className={header["logo-title"]}>
<img src={logo} className={app["App-logo"]} alt="logo" />
<h1 className={header["header-content"]}>React Hooks</h1>
</div>

<select
className={styles["header-selector"]}
className={header["header-selector"]}
onChange={handleRouteChange}
value={selectedOption}
>
Expand Down
1 change: 0 additions & 1 deletion src/pages/UseEffect.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { useState, useEffect } from "react";
import styles from "../styles/Info.module.css";
import info from "../styles/Info.module.css";
import util from "../styles/Util.module.css";

Expand Down

0 comments on commit ee092a8

Please sign in to comment.