-
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.
fix: adjust plop files templates sintaxe
- Loading branch information
flamarionfagundes
committed
Oct 10, 2022
1 parent
315f375
commit 20c5814
Showing
4 changed files
with
10 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
import * as S from './{{pascalCase name}}.styles'; | ||
|
||
export const {{pascalCase name}} = () => { | ||
return ( | ||
<S.Wrapper> | ||
<div> | ||
<h1>{{pascalCase name}}</h1> | ||
</S.Wrapper> | ||
</div> | ||
); | ||
}; |
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,13 +1,11 @@ | ||
import React from 'react'; | ||
import { Story } from '@storybook/react'; | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import { {{pascalCase name}} } from './{{pascalCase name}}'; | ||
|
||
const Template: Story = (args) => <{{pascalCase name}} {...args} />; | ||
|
||
export const Default = Template.bind({}); | ||
Default.args = {}; | ||
|
||
export default { | ||
title: 'components/{{pascalCase name}}', | ||
component: {{pascalCase name}}, | ||
}; | ||
} as Meta; | ||
|
||
export const Default: StoryObj = {}; | ||
|
||
|
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,3 +1 @@ | ||
export type {{pascalCase name}}Props = { | ||
sample: string; | ||
}; | ||
export type {{pascalCase name}}Props = { sample: string; }; |
20c5814
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
react-main-boilerplate – ./
react-main-boilerplate.vercel.app
react-main-boilerplate-git-develop-flamarionfp.vercel.app
react-main-boilerplate-flamarionfp.vercel.app