Skip to content

Commit

Permalink
v.0.3.1
Browse files Browse the repository at this point in the history
* Fix display name issue
  • Loading branch information
orhels committed Jul 22, 2016
1 parent d6a18d8 commit 2836c78
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 23 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#CHANGELOG

##Version 0.3.1
Fixed displayName issue

##Version 0.3.0
Oppdatert til 0.5.x av ffe-icons
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ffe-message-box-react",
"version": "0.3.0",
"version": "0.3.1",
"main": "lib/index.js",
"scripts": {
"build": "babel -d lib/. --ignore=*.test.js src/. && npm run example",
Expand Down
12 changes: 7 additions & 5 deletions src/error-message-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ import React from 'react';
import Icon from 'ffe-icons-react/utropstegn-ikon';
import MessageBox from './message-box';

const iconStyles = {
width: '40px',
const iconStyles = {
width: '40px',
height: '40px'
};

export default ({ title, content, children }) => MessageBox({
const ErrorMessage = ({ title, content, children }) => MessageBox({
type: 'error',
icon: <Icon style={ iconStyles } />,
icon: <Icon style={ iconStyles }/>,
title,
content,
children
});
});

export default ErrorMessage;
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export {
ErrorMessage,
InfoMessage,
TipsMessage
};
};
12 changes: 7 additions & 5 deletions src/info-message-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ import React from 'react';
import Icon from 'ffe-icons-react/info-sirkel-ikon';
import MessageBox from './message-box';

const iconStyles = {
width: '40px',
const iconStyles = {
width: '40px',
height: '40px'
};

export default ({ title, content, children }) => MessageBox({
const InfoMessage = ({ title, content, children }) => MessageBox({
type: 'info',
icon: <Icon style={ iconStyles } />,
icon: <Icon style={ iconStyles }/>,
title,
content,
children
});
});

export default InfoMessage;
14 changes: 8 additions & 6 deletions src/success-message-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ import React from 'react';
import Icon from 'ffe-icons-react/hake-ikon';
import MessageBox from './message-box';

const iconStyles = {
width: '40px',
const iconStyles = {
width: '40px',
height: '40px'
};

export default ({ title, content, children }) => MessageBox({
const SuccessMessage = ({ title, content, children }) => MessageBox({
type: 'success',
icon: <Icon style={ iconStyles } />,
icon: <Icon style={ iconStyles }/>,
title,
content,
content,
children
});
});

export default SuccessMessage;
12 changes: 7 additions & 5 deletions src/tips-message-box.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ import React from 'react';
import Icon from 'ffe-icons-react/lyspare-ikon';
import MessageBox from './message-box';

const iconStyles = {
width: '40px',
const iconStyles = {
width: '40px',
height: '40px'
};

export default ({ title, content, children }) => MessageBox({
const TipsMessage = ({ title, content, children }) => MessageBox({
type: 'tips',
icon: <Icon style={ iconStyles } />,
icon: <Icon style={ iconStyles }/>,
title,
content,
children
});
});

export default TipsMessage;

0 comments on commit 2836c78

Please sign in to comment.