diff --git a/src/components/DocsCallout.js b/src/components/DocsCallout.js index 63146a5..0af7ccd 100644 --- a/src/components/DocsCallout.js +++ b/src/components/DocsCallout.js @@ -5,7 +5,7 @@ import { CCallout, CLink } from '@coreui/react' import packageJson from '../../package.json' const DocsCallout = (props) => { - const { href, name } = props + const { content, href, name } = props const plural = name.slice(-1) === 's' ? true : false @@ -13,9 +13,13 @@ const DocsCallout = (props) => { return ( - A React {name} component {plural ? 'have' : 'has'} been created as a native React.js version - of Bootstrap {name}. {name} {plural ? 'are' : 'is'} delivered with some new features, - variants, and unique design that matches CoreUI Design System requirements. + {content + ? content + : `A React ${name} component ${ + plural ? 'have' : 'has' + } been created as a native React.js version + of Bootstrap ${name}. ${name} ${plural ? 'are' : 'is'} delivered with some new features, + variants, and unique design that matches CoreUI Design System requirements.`}

For more information please visit our official{' '} @@ -28,6 +32,7 @@ const DocsCallout = (props) => { } DocsCallout.propTypes = { + content: PropTypes.string, href: PropTypes.string, name: PropTypes.string, } diff --git a/src/views/charts/Charts.js b/src/views/charts/Charts.js index 76b082f..a9e13f1 100644 --- a/src/views/charts/Charts.js +++ b/src/views/charts/Charts.js @@ -8,19 +8,23 @@ import { CChartPolarArea, CChartRadar, } from '@coreui/react-chartjs' -import { DocsLink } from 'src/components' +import { DocsCallout } from 'src/components' const Charts = () => { const random = () => Math.round(Math.random() * 100) return ( + + + - - Bar Chart - - + Bar Chart { return str.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, '$1-$2').toLowerCase() @@ -19,15 +19,19 @@ export const getIconsView = (iconset) => { const CoreUIIcons = () => { return ( - - - Brand Icons - - - - {getIconsView(brandSet)} - - + <> + + + Brand Icons + + {getIconsView(brandSet)} + + + ) } diff --git a/src/views/icons/coreui-icons/CoreUIIcons.js b/src/views/icons/coreui-icons/CoreUIIcons.js index cb66a3a..d0a5969 100644 --- a/src/views/icons/coreui-icons/CoreUIIcons.js +++ b/src/views/icons/coreui-icons/CoreUIIcons.js @@ -2,19 +2,23 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CRow } from '@coreui/react' import { freeSet } from '@coreui/icons' import { getIconsView } from '../brands/Brands.js' -import { DocsLink } from 'src/components' +import { DocsCallout } from 'src/components' const CoreUIIcons = () => { return ( - - - Free Icons / as CIcon{' '} - - - - {getIconsView(freeSet)} - - + <> + + + Free Icons + + {getIconsView(freeSet)} + + + ) } diff --git a/src/views/icons/flags/Flags.js b/src/views/icons/flags/Flags.js index d86495a..a1179df 100644 --- a/src/views/icons/flags/Flags.js +++ b/src/views/icons/flags/Flags.js @@ -2,19 +2,23 @@ import React from 'react' import { CCard, CCardBody, CCardHeader, CRow } from '@coreui/react' import { getIconsView } from '../brands/Brands.js' import { flagSet } from '@coreui/icons' -import { DocsLink } from 'src/components' +import { DocsCallout } from 'src/components' const CoreUIIcons = () => { return ( - - - Flag Icons - - - - {getIconsView(flagSet)} - - + <> + + + Flag Icons + + {getIconsView(flagSet)} + + + ) }