Merge pull request #1 from williameriksson126/we-basicButtonClass

Add basic button class
This commit is contained in:
William Eriksson 2020-11-20 11:54:59 +01:00 committed by GitHub
commit 43ecf76337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 0 deletions

View File

@ -9,6 +9,12 @@ class App extends Component {
render() { render() {
return ( return (
<div className="App"> <div className="App">
{/*
<Button
title = "placeholderTitle"
destination = "placeholderDestination"
/>
*/}
<NavigationDrawer /> <NavigationDrawer />
<Header /> <Header />
<PageArea /> <PageArea />

14
src/components/Button.js Normal file
View File

@ -0,0 +1,14 @@
import React, {Component} from 'react'
class Button extends Component {
render() {
return (
<a href={this.props.destination}>
{this.props.title}
</a>
);
}
}
// TODO Add css
export default Button