card further work
This commit is contained in:
@@ -1,11 +1,23 @@
|
||||
import React from "react";
|
||||
import ButtonPrimary from "./ButtonPrimary";
|
||||
import logo from "../public/logo_white.svg";
|
||||
import { useDispatch } from "react-redux";
|
||||
import { setAppMode } from "../actions";
|
||||
|
||||
export default function TopBar() {
|
||||
const dispatch = useDispatch();
|
||||
const imgClick = () => {
|
||||
dispatch(setAppMode("APP_INIT"));
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="topBar">
|
||||
<img src={logo} className="topBarLogo" alt="Menui logo" />
|
||||
<img
|
||||
src={logo}
|
||||
className="topBarLogo"
|
||||
alt="Menui logo"
|
||||
onClick={() => imgClick()}
|
||||
/>
|
||||
<div>
|
||||
<ButtonPrimary text="Dodaj Lokal" />
|
||||
<ButtonPrimary text="Logowanie" />
|
||||
|
||||
Reference in New Issue
Block a user