mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 09:09:01 +00:00
Add proptype for CharacterString
This commit is contained in:
parent
2b9e7a6795
commit
199bd379d4
1 changed files with 6 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React from "react";
|
||||
import Character from "./Character";
|
||||
|
||||
export default props => {
|
||||
const CharacterString = props => {
|
||||
const text = `${props.children}`;
|
||||
const chars = text.split("");
|
||||
return (
|
||||
|
|
@ -15,4 +15,8 @@ export default props => {
|
|||
);
|
||||
};
|
||||
|
||||
// TODO: Require that props.children be a string
|
||||
CharacterString.propsTypes = {
|
||||
children: React.PropTypes.string
|
||||
};
|
||||
|
||||
export default CharacterString;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue