-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nextjs-sxa] hotfix eslint for building nextjs-sxa (#1046)
* hotfix eslint for building nextjs-sxa * hotfix eslint for building nextjs-sxa * #hotfix fixed lint errors
- Loading branch information
1 parent
eb2c990
commit 962bf7a
Showing
4 changed files
with
19 additions
and
15 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
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
7 changes: 3 additions & 4 deletions
7
...-sitecore-jss/src/templates/nextjs-sxa/src/components/PartialDesignDynamicPlaceholder.tsx
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,12 @@ | ||
import React from 'react'; | ||
import { Placeholder } from '@sitecore-jss/sitecore-jss-nextjs'; | ||
import { ComponentRendering, RouteData } from '@sitecore-jss/sitecore-jss/layout'; | ||
import { Placeholder, ComponentRendering } from '@sitecore-jss/sitecore-jss-nextjs'; | ||
|
||
type DynamicPlaceholderProps = { | ||
rendering: ComponentRendering | RouteData; | ||
rendering: ComponentRendering; | ||
}; | ||
|
||
const PartialDesignDynamicPlaceholder = (props: DynamicPlaceholderProps): JSX.Element => ( | ||
<Placeholder name={props.rendering.params.sig} rendering={props.rendering} /> | ||
<Placeholder name={props.rendering?.params?.sig || ''} rendering={props.rendering} /> | ||
); | ||
|
||
export default PartialDesignDynamicPlaceholder; |
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