card further work

This commit is contained in:
2020-07-23 22:16:27 +02:00
parent d8173a9d7f
commit 2ab445670e
25 changed files with 181 additions and 33 deletions

View File

@@ -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" />