Skip to content

Commit c0bcb8b

Browse files
Restore 'use client' for Next.js
1 parent 872b68c commit c0bcb8b

File tree

32 files changed

+64
-0
lines changed

32 files changed

+64
-0
lines changed

src/components/content-presentation/do-and-dont-list/DoAndDontList.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import classNames from 'classnames';
24
import {
35
createContext,

src/components/content-presentation/table/Table.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import classNames from 'classnames';
24
import {
35
forwardRef,

src/components/content-presentation/table/TableContext.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import { createContext, type ReactNode } from 'react';
24

35
export interface ITableContext {

src/components/content-presentation/table/TableSectionContext.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import { createContext } from 'react';
24

35
export enum TableSection {

src/components/content-presentation/table/components/TableCell.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import classNames from 'classnames';
24
import { useContext, type ComponentPropsWithoutRef, type FC } from 'react';
35
import { TableContext, type ITableContext } from '../TableContext.js';

src/components/content-presentation/table/components/TableHead.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import classNames from 'classnames';
24
import { useContext, type ComponentPropsWithoutRef, type FC } from 'react';
35
import { TableContext, type ITableContext } from '../TableContext.js';

src/components/content-presentation/table/components/TableRow.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import classNames from 'classnames';
24
import {
35
Children,

src/components/content-presentation/tabs/Tabs.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import classNames from 'classnames';
24
import { type Tabs as TabsModule } from 'nhsuk-frontend';
35
import {

src/components/form-elements/button/Button.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import classNames from 'classnames';
24
import { type Button as ButtonModule } from 'nhsuk-frontend';
35
import {

src/components/form-elements/character-count/CharacterCount.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
'use client';
2+
13
import classNames from 'classnames';
24
import { type CharacterCount as CharacterCountModule } from 'nhsuk-frontend';
35
import { createRef, forwardRef, useEffect, useState, type ComponentPropsWithoutRef } from 'react';

0 commit comments

Comments
 (0)