This repository has been archived by the owner on May 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
198 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React, { PureComponent } from "react"; | ||
export declare type ButtonTypes = 'default' | 'persoonlijk'; | ||
export interface Props { | ||
buttonStyle: ButtonTypes; | ||
className?: string; | ||
onClick: (e: React.MouseEvent<HTMLButtonElement>) => void; | ||
} | ||
export default class AddButton extends PureComponent<any, any> { | ||
render(): JSX.Element; | ||
} | ||
declare const GlobalStyle: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>; | ||
export { GlobalStyle as AddButtonStyle }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import AddButton, { AddButtonStyle } from './AddButton'; | ||
import ButtonCallToAction, { ButtonCallToActionStyles } from './ButtonCta'; | ||
import ButtonEditorial, { ButtonEditorialStyles } from './ButtonEditorial'; | ||
import FollowButton, { FollowButtonStyle } from './FollowButton'; | ||
export { ButtonCallToAction, ButtonCallToActionStyles }; | ||
export { ButtonEditorial, ButtonEditorialStyles }; | ||
export { FollowButton, FollowButtonStyle }; | ||
export { AddButton, AddButtonStyle, ButtonCallToAction, ButtonCallToActionStyles, ButtonEditorial, ButtonEditorialStyles, FollowButton, FollowButtonStyle }; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import React, { PureComponent } from "react"; | ||
import { createGlobalStyle } from "styled-components"; | ||
|
||
export type ButtonTypes = 'default' | 'persoonlijk'; | ||
|
||
export interface Props { | ||
buttonStyle: ButtonTypes; | ||
className?: string; | ||
onClick: (e: React.MouseEvent<HTMLButtonElement>) => void; | ||
} | ||
|
||
export default class AddButton extends PureComponent<any, any> { | ||
render() { | ||
return ( | ||
<> | ||
<GlobalStyle/> | ||
<button className={`fd-add-button${this.props.className ? ` ${this.props.className}` : ''}${this.props.buttonStyle ? ` ${this.props.buttonStyle}` : ''}`} onClick={this.props.onClick}>{this.props.children}</button> | ||
</> | ||
); | ||
} | ||
} | ||
|
||
const GlobalStyle = createGlobalStyle` | ||
.fd-add-button { | ||
outline: none; | ||
border-radius: 2px; | ||
white-space: nowrap; | ||
padding: 5px 10px; | ||
border: 1px solid #c60; | ||
color: #ffeadb; | ||
background-color: #c60; | ||
cursor: pointer; | ||
transition: all .2s; | ||
font-family: 'ProximaNovaRegular', sans-serif; | ||
&.persoonlijk { | ||
color: #ffffff; | ||
} | ||
} | ||
`; | ||
export {GlobalStyle as AddButtonStyle}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import AddButton, {AddButtonStyle} from './AddButton'; | ||
import ButtonCallToAction, {ButtonCallToActionStyles} from './ButtonCta'; | ||
import ButtonEditorial, { ButtonEditorialStyles } from './ButtonEditorial'; | ||
import FollowButton, { FollowButtonStyle } from './FollowButton'; | ||
|
||
export {ButtonCallToAction, ButtonCallToActionStyles}; | ||
export {ButtonEditorial, ButtonEditorialStyles}; | ||
export {FollowButton, FollowButtonStyle}; | ||
export { | ||
AddButton, AddButtonStyle, | ||
ButtonCallToAction, ButtonCallToActionStyles, | ||
ButtonEditorial, ButtonEditorialStyles, | ||
FollowButton, FollowButtonStyle | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,8 +104,6 @@ const GlobalStyle = createGlobalStyle` | |
} | ||
} | ||
} | ||
} | ||
`; | ||
|
||
export {GlobalStyle as FollowButtonStyle}; |