Skip to content

Commit

Permalink
Merge pull request #71 from glorious-codes/docs_improv
Browse files Browse the repository at this point in the history
Minor fixes on Alert and Toaster docs (React)
  • Loading branch information
rafaelcamargo committed Jan 20, 2021
2 parents ac63ae9 + 5499ec4 commit 04e717d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion src/react/services/alert/alert.doc.js
Expand Up @@ -7,7 +7,7 @@ module.exports = {
params: [
{
name: 'content',
type: 'String, Vue Component',
type: 'String, React Node',
values: 'Any',
description: 'Content to be shown in the dialog.',
required: true
Expand Down
15 changes: 0 additions & 15 deletions src/react/services/toaster/toaster.doc.js
Expand Up @@ -65,21 +65,6 @@ module.exports = {
{
title: 'Toast with theme',
description: 'You can optionally set a theme to the toast.',
controller: {
methods: {
pop(theme){
const { toaster } = taslonicVue;
toaster.pop({
title: this.capitalize(theme),
message: `This is a <i>${theme}</i> toast.`,
theme
});
},
capitalize([ firstLetter, ...rest ]){
return [firstLetter.toUpperCase(), ...rest].join('');
}
}
},
controller: function(){
const { Button, Col, Row, toaster } = taslonicReact;

Expand Down

0 comments on commit 04e717d

Please sign in to comment.