forked from react-bootstrap/react-bootstrap
-
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.
[changed] Renamed Collapsable* => Collapsible*
CollapsableMixin => CollaplibleMixin CollapsableNav => CollaplibleNav More here react-bootstrap#425 Exactly this commit: Add CollapsibleMixin to src/index.js Refactor deprecationWarning() for general use.
- Loading branch information
Showing
5 changed files
with
23 additions
and
9 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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
export default function deprecationWarning(oldname, newname) { | ||
export default function deprecationWarning(oldname, newname, link) { | ||
if (process.env.NODE_ENV !== 'production') { | ||
let message = `${oldname} is deprecated. Use ${newname} instead.`; | ||
console.warn(message); | ||
let link = 'https://github.com/react-bootstrap/react-bootstrap/issues/425#issuecomment-97110963'; | ||
console.warn(`You can read more about it here ${link}`); | ||
|
||
if (link) { | ||
console.warn(`You can read more about it here ${link}`); | ||
} | ||
} | ||
} |