Skip to content

Commit

Permalink
Add logo component (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinarusielik authored Apr 24, 2021
1 parent 1869295 commit 46d1f71
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/public/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions frontend/src/components/atoms/Logo/Logo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import { PATH_FOR_IMAGES } from '../../atoms/constants/imgPaths';

export default function Logo() {
return (
<div>
<img src={`${PATH_FOR_IMAGES}/logo.svg`} alt="logo" />
</div>
);
}
2 changes: 2 additions & 0 deletions frontend/src/components/pages/Integramic/Integramic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import ClickButton from '../../atoms/Button/ClickButton';
import UserAvatarAndName from '../../molecules/UserAvatarAndName/UserAvatarAndName';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import { PATH_FOR_MAIN_VIEW } from '../../atoms/constants/routerPaths';
import Logo from '../../atoms/Logo/Logo';

const onClick = () => {};

Expand All @@ -19,6 +20,7 @@ export function Integramic() {
<ClickButton text={'ZADAJ PYTANIE'} onClick={() => onClick()} />

<UserAvatarAndName />
<Logo />
</Route>
</Switch>
</Router>
Expand Down

0 comments on commit 46d1f71

Please sign in to comment.