Skip to content

Commit

Permalink
Fix: Missing root props on scaffold (#384)
Browse files Browse the repository at this point in the history
* Fix: add missing props to route component

* Run: yarn raw and yarn cookie

* use action-eslint fork with .eslintignore support

* set ref for danielsousaio/action-eslint

* use full commit sha

* use master ref

* use crowdbotics/action-eslint fork

transfered ownership of the repo

Co-authored-by: Daniel <[email protected]>
  • Loading branch information
alaisgomes and danielsousaio committed Aug 2, 2022
1 parent 9776a3c commit d6c5318
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
node-version: 16
cache: "yarn"
- run: yarn install
- uses: sibiraj-s/action-eslint@v2
- uses: crowdbotics/action-eslint@v2.2.1
with:
eslint-args: "--config .eslintrc.json --ignore-path=.gitignore --quiet"
extensions: "js,jsx,ts,tsx"
Expand Down
4 changes: 2 additions & 2 deletions dist/cookie/{{cookiecutter.project_slug}}/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const getNavigation = (modules, screens, initialRoute) => {
const pakage = mod.package;
const name = mod.value.title;
const Navigator = mod.value.navigator;
const Component = () => {
const Component = (props) => {
return (
<OptionsContext.Provider value={getOptions(pakage)}>
<Navigator />
<Navigator {...props} />
</OptionsContext.Provider>
)
}
Expand Down
4 changes: 2 additions & 2 deletions dist/raw/ProjectName/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const getNavigation = (modules, screens, initialRoute) => {
const pakage = mod.package;
const name = mod.value.title;
const Navigator = mod.value.navigator;
const Component = () => {
const Component = (props) => {
return (
<OptionsContext.Provider value={getOptions(pakage)}>
<Navigator />
<Navigator {...props} />
</OptionsContext.Provider>
)
}
Expand Down
4 changes: 2 additions & 2 deletions scaffold/template/custom/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const getNavigation = (modules, screens, initialRoute) => {
const pakage = mod.package;
const name = mod.value.title;
const Navigator = mod.value.navigator;
const Component = () => {
const Component = (props) => {
return (
<OptionsContext.Provider value={getOptions(pakage)}>
<Navigator />
<Navigator {...props} />
</OptionsContext.Provider>
)
}
Expand Down

0 comments on commit d6c5318

Please sign in to comment.