Merge pull request #28391 from backstage/canon-directives

Canon - Add 'use client' directive when needed
This commit is contained in:
Charles de Dreuille
2025-01-09 13:56:17 +00:00
committed by GitHub
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 { icons } from '../components/Icon/icons';