From 503cf14db3b44dea7da7a6ce9c1a8958b623c173 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Tue, 7 Jan 2025 16:14:51 +0000 Subject: [PATCH] Remove 'use client' directive Signed-off-by: Charles de Dreuille --- packages/canon/src/components/Heading/Heading.tsx | 2 -- packages/canon/src/components/Icon/Icon.tsx | 2 -- packages/canon/src/components/Text/Text.tsx | 2 -- packages/canon/src/contexts/canon.tsx | 2 -- 4 files changed, 8 deletions(-) diff --git a/packages/canon/src/components/Heading/Heading.tsx b/packages/canon/src/components/Heading/Heading.tsx index 1ac9f7d997..612c871ebb 100644 --- a/packages/canon/src/components/Heading/Heading.tsx +++ b/packages/canon/src/components/Heading/Heading.tsx @@ -14,8 +14,6 @@ * limitations under the License. */ -'use client'; - import React, { forwardRef } from 'react'; import { HeadingProps } from './types'; import { useCanon } from '../../contexts/canon'; diff --git a/packages/canon/src/components/Icon/Icon.tsx b/packages/canon/src/components/Icon/Icon.tsx index d4dbf601e3..1df46c8a78 100644 --- a/packages/canon/src/components/Icon/Icon.tsx +++ b/packages/canon/src/components/Icon/Icon.tsx @@ -14,8 +14,6 @@ * limitations under the License. */ -'use client'; - import React from 'react'; import { useCanon } from '../../contexts/canon'; import type { IconProps } from './types'; diff --git a/packages/canon/src/components/Text/Text.tsx b/packages/canon/src/components/Text/Text.tsx index a4f251a171..1359a0e4c5 100644 --- a/packages/canon/src/components/Text/Text.tsx +++ b/packages/canon/src/components/Text/Text.tsx @@ -1,5 +1,3 @@ -'use client'; - /* * Copyright 2024 The Backstage Authors * diff --git a/packages/canon/src/contexts/canon.tsx b/packages/canon/src/contexts/canon.tsx index 92b36ce396..5a0e6b4315 100644 --- a/packages/canon/src/contexts/canon.tsx +++ b/packages/canon/src/contexts/canon.tsx @@ -14,8 +14,6 @@ * 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';