Skip to content

Commit

Permalink
Fixing variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
adenjonah committed Feb 18, 2024
1 parent d436bf2 commit 054dc20
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import './App.css';
import Navbar from "./components/Navbar";
import BNavbar from "./components/BNavbar";
import BNavbar from "./components/BottomButtons";
import {
BrowserRouter as Router,
Routes,
Expand Down
20 changes: 10 additions & 10 deletions src/components/BNavbar.js → src/components/BottomButtons.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// BNavbar.js
import React from "react";
import { BNav, BNavMenu, BNavButton } from "./BNavbarElements"; // Add BNavButton import
import { BottomButtonMenu, BButtonButton, BButton } from "./BottomButtonsElements"; // Add BNavButton import
import { useNavigate, useLocation } from "react-router-dom";
import './bnavbar.css';
import './bottombuttons.css';

const BNavbar = () => {
const BottomButtons = () => {
const navigate = useNavigate();
const location = useLocation();

Expand All @@ -25,17 +25,17 @@ const BNavbar = () => {

return (
<>
<BNav>
<BNavMenu>
<BButton>
<BottomButtonMenu>
{pageButtonMap[location.pathname] && pageButtonMap[location.pathname].map((buttonLink, index) => (
<BNavButton key={index} onClick={() => handleButtonClick(buttonLink)} className="bnav-link">
<BButtonButton key={index} onClick={() => handleButtonClick(buttonLink)} className="bnav-link">
{index % 2 === 0 ? '◄' : '►'} {buttonLink.split('/')[1]}
</BNavButton>
</BButtonButton>
))}
</BNavMenu>
</BNav>
</BottomButtonMenu>
</BButton>
</>
);
};

export default BNavbar;
export default BottomButtons;
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import styled from "styled-components";
import { NavLink as Link } from "react-router-dom";

export const BNav = styled.nav`
export const BButton = styled.nav`
background: darkblue;
height: 75px;
display: flex;
Expand All @@ -15,7 +15,7 @@ export const BNav = styled.nav`
width: 100%;
`;

export const BNavButton = styled.button`
export const BButtonButton = styled.button`
color: #808080;
background: none;
border: none;
Expand All @@ -37,7 +37,7 @@ export const BNavButton = styled.button`
}
`;

export const BNavLink = styled(Link)`
export const BottomLink = styled(Link)`
color: #808080;
text-decoration: none;
width: 2rem; /* Fixed width for square buttons */
Expand All @@ -57,7 +57,7 @@ export const BNavLink = styled(Link)`
}
`;

export const BNavMenu = styled.div`
export const BottomButtonMenu = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
Expand Down
File renamed without changes.

0 comments on commit 054dc20

Please sign in to comment.