Skip to content

Commit

Permalink
fix link on search page, fix customadmin page menu
Browse files Browse the repository at this point in the history
  • Loading branch information
BelousSofiya committed Nov 22, 2023
1 parent eff65e3 commit 9e0ed21
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 10 deletions.
Binary file not shown.
2 changes: 0 additions & 2 deletions FrontEnd/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import AdminPage from './components/adminPage/AdminPage';
import BasicPage from './components/basicPage/BasicPage';
import { AuthContext } from './context';
import { useProvideAuth } from './hooks';
// import { Search } from './components/SearchPage/Search';

function App() {
const auth = useProvideAuth();
Expand All @@ -17,7 +16,6 @@ function App() {
<Routes>
<Route path="/*" element={<BasicPage />} />
<Route path="/customadmin/*" element={<AdminPage />} />
{/* <Route path="/search" element={<Search isAuthorized={auth} />} /> */}
</Routes>
</div>
</BrowserRouter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ const CompanyCard = ({ companyData, isAuthorized }) => {
<div className={styles['company-card']}>
<div className={styles['company-card__block']}>
<div className={styles['company-card__image-frame']}>
<img
className={styles['company-card__image']}
src={`${process.env.REACT_APP_PUBLIC_URL}/companies-logos/defaultcompanybanner.png`}
alt={companyData.name}
/>
</div>
<div className={styles['company-card__text-block']}>
<div className={styles['company-card__text-block__header']}>
Expand Down
2 changes: 1 addition & 1 deletion FrontEnd/src/components/adminPage/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ function Header () {
return (
<header>
<div className={css['header-content']}>
<Link className={css['header-logo__text']} to="/admin/">admin panel</Link>
<Link className={css['header-logo__text']} to="/customadmin/">admin panel</Link>
<Link className={css['header-view__button']} to="/">Переглянути сайт</Link>
</div>
<div className={css['header-divider']}></div>
Expand Down
4 changes: 2 additions & 2 deletions FrontEnd/src/components/adminPage/menu/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ const MENU = [
{
id: 'am1',
title: 'Користувачі',
link: '/admin/users/'
link: '/customadmin/users/'
},
{
id: 'am2',
title: 'Компанії',
link: '/admin/companies/'
link: '/customadmin/companies/'
},
];

Expand Down

0 comments on commit 9e0ed21

Please sign in to comment.