Skip to content

Commit

Permalink
use newest player
Browse files Browse the repository at this point in the history
  • Loading branch information
sndrs committed Dec 12, 2024
1 parent cb0428c commit 4de56a1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dotcom-rendering/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@guardian/libs": "19.2.1",
"@guardian/ophan-tracker-js": "2.2.5",
"@guardian/react-crossword": "2.0.2",
"@guardian/react-crossword-next": "npm:@guardian/react-crossword@0.0.0-canary-20241209150926",
"@guardian/react-crossword-next": "npm:@guardian/react-crossword@0.0.0-canary-20241212165903",
"@guardian/shimport": "1.0.2",
"@guardian/source": "8.0.0",
"@guardian/source-development-kitchen": "12.0.0",
Expand Down
12 changes: 6 additions & 6 deletions dotcom-rendering/src/components/Crossword.importable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,23 @@ import {
textSans12,
textSans14,
} from '@guardian/source/foundations';
import type { ReactNode } from 'react';
import { memo } from 'react';

const CluesHeader = memo(({ direction }: { direction: 'across' | 'down' }) => {
const CluesHeader = memo(({ children }: { children: ReactNode }) => {
return (
<div
css={css`
${headlineBold17};
border-top: 1px solid ${palette.neutral[86]};
border-bottom: 1px dotted ${palette.neutral[86]};
background-color: ${palette.neutral[100]};
height: 2em;
margin-bottom: 0.5em;
text-transform: capitalize;
`}
>
{direction}
{children}
</div>
);
});
Expand All @@ -32,11 +35,8 @@ const Layout: CrosswordProps['Layout'] = ({
Clues,
Controls,
SavedMessage,
// gridWidth - coming in next version of package
gridWidth,
}) => {
// replace with gridWidth from props when package is updated
const gridWidth = '496';

return (
<div
css={css`
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

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

0 comments on commit 4de56a1

Please sign in to comment.