Add 'use client' directive when needed

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2025-01-07 16:45:32 +00:00
parent 366a9432af
commit 1b5d12fc2a
5 changed files with 10 additions and 0 deletions
@@ -14,6 +14,8 @@
* limitations under the License.
*/
'use client';
import React, { forwardRef } from 'react';
import { Icon } from '../Icon';
import { ButtonProps } from './types';
@@ -14,6 +14,8 @@
* limitations under the License.
*/
'use client';
import React, { forwardRef } from 'react';
import { HeadingProps } from './types';
import { useCanon } from '../../contexts/canon';
@@ -14,6 +14,8 @@
* limitations under the License.
*/
'use client';
import React from 'react';
import { useCanon } from '../../contexts/canon';
import type { IconProps } from './types';
@@ -14,6 +14,8 @@
* limitations under the License.
*/
'use client';
import React, { forwardRef } from 'react';
import { TextProps } from './types';
import { useCanon } from '../../contexts/canon';
+2
View File
@@ -14,6 +14,8 @@
* limitations under the License.
*/
'use client';
import React, { createContext, useContext, ReactNode } from 'react';
import { IconMap, IconNames } from '../components/Icon/types';
import { defaultIcons } from '../components/Icon/icons';