-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Button): Remove the primary invert option for Button.
Also improve the wording of the docs.
- Loading branch information
1 parent
e145127
commit 9988ca5
Showing
12 changed files
with
89 additions
and
39 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
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
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,11 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
|
||
import styles from './PurpleBlock.modules.scss'; | ||
|
||
const PurpleBlock = ({ children }) => <div className={styles.purpleBlock}>{children}</div>; | ||
PurpleBlock.propTypes = { | ||
children: PropTypes.node.isRequired | ||
}; | ||
|
||
export default PurpleBlock; |
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,7 @@ | ||
@import '../../../scss/settings/colours'; | ||
@import '../../../scss/settings/spacing'; | ||
|
||
.purpleBlock { | ||
background-color: $color-secondary; | ||
padding: $spacing-wide; | ||
} |
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
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
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 |
---|---|---|
@@ -1,9 +1,17 @@ | ||
/* eslint-disable import/prefer-default-export */ | ||
|
||
export const warn = (componentName, message) => { | ||
export const deprecate = (componentName, message) => { | ||
if (process.env.NODE_ENV === 'production') { | ||
return; | ||
} | ||
|
||
console.warn(`[TDS] [Deprecate] ${componentName}: ${message}`); // eslint-disable-line no-console | ||
}; | ||
|
||
export const warn = (componentName, message) => { | ||
if (process.env.NODE_ENV === 'production') { | ||
return; | ||
} | ||
|
||
console.warn(`[TDS] ${componentName}: ${message}`); // eslint-disable-line no-console | ||
}; |