Address PR feedback

This commit is contained in:
fragosti
2018-06-04 17:02:10 -07:00
parent a74597c7cd
commit cf73363016
8 changed files with 46 additions and 40 deletions

View File

@@ -48,15 +48,15 @@ Button.defaultProps = {
Button.displayName = 'Button';
type CTAType = 'light' | 'dark';
type CallToActionType = 'light' | 'dark';
export interface CTAProps {
type?: CTAType;
export interface CallToActionProps {
type?: CallToActionType;
fontSize?: string;
width?: string;
}
export const CTA: React.StatelessComponent<CTAProps> = ({ children, type, fontSize, width }) => {
export const CallToAction: React.StatelessComponent<CallToActionProps> = ({ children, type, fontSize, width }) => {
const isLight = type === 'light';
const backgroundColor = isLight ? colors.white : colors.heroGrey;
const fontColor = isLight ? colors.heroGrey : colors.white;
@@ -74,6 +74,6 @@ export const CTA: React.StatelessComponent<CTAProps> = ({ children, type, fontSi
);
};
CTA.defaultProps = {
CallToAction.defaultProps = {
type: 'dark',
};