mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-24 17:01:49 -05:00
Adds notification list to orgs
This commit is contained in:
14
src/components/CapitalizeText.jsx
Normal file
14
src/components/CapitalizeText.jsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react';
|
||||
|
||||
class CapitalizeText extends React.Component {
|
||||
upperCaseFirstLetter = (string) => (typeof string === 'string' ? string.charAt(0).toUpperCase() + string.slice(1) : '');
|
||||
|
||||
render () {
|
||||
const { text } = this.props;
|
||||
return (
|
||||
this.upperCaseFirstLetter(text)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default CapitalizeText;
|
||||
Reference in New Issue
Block a user