-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change crossword component name to fix renaming issue with build (#13177
- Loading branch information
1 parent
d8f5a3f
commit ec58bd7
Showing
3 changed files
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
dotcom-rendering/src/components/CrosswordComponent.importable.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Crossword as ReactCrossword } from '@guardian/react-crossword-next'; | ||
import type { CrosswordProps } from '@guardian/react-crossword-next'; | ||
|
||
/* | ||
The name of this component is important, when it was "Crossword" | ||
webpack was renaming it and the JS wasn't loading in the client. | ||
*/ | ||
export const CrosswordComponent = ({ | ||
data, | ||
}: { | ||
data: CrosswordProps['data']; | ||
}) => <ReactCrossword data={data} clueMinWidth={150} />; |
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