Skip to content

Commit

Permalink
Release/2024 03 11 (#107)
Browse files Browse the repository at this point in the history
* fix: remove main tag from home body causing duplicate main tags in DOM

* fix(CLI: project template): early exit if locale is undefined

* chore: updated lock file

* cli_v3.0.18

---------

Co-authored-by: Harvey Ngo <harveydngo@gmail.com>
Co-authored-by: Marlon Ugocioni Marcello <marlon.marcello@gmail.com>
  • Loading branch information
3 people authored Mar 12, 2024
1 parent 70840dd commit 65106c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wethegit/corgi",
"version": "3.0.17",
"version": "3.0.18",
"description": "Command line interface for use with the corgi framework.",
"main": "bin/index.js",
"bin": {
Expand Down
2 changes: 2 additions & 0 deletions cli/templates/project/src/context/locale-context.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export function LocaleProvider({ children, locale }) {
}, [locale])

useEffect(() => {
if (!locale) return

addPage(locale.pageName)

setCache((cur) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function HomeBody() {
} = useLocale()

return (
<main>
<>
<h2>
locale: <code>{locale}</code>
</h2>
Expand All @@ -29,6 +29,6 @@ export function HomeBody() {
<p>{coolSetting}</p>

<p>{pageCoolSetting}</p>
</main>
</>
)
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 65106c3

Please sign in to comment.