Skip to content

Commit

Permalink
fix: add use client for createContext
Browse files Browse the repository at this point in the history
  • Loading branch information
SevereCloud committed Nov 24, 2024
1 parent db19559 commit 83106e3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import * as React from 'react';
import type { SizeTypeValues, ViewHeightType, ViewWidthType } from '../../lib/adaptivity';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
'use client';

// TODO [@vkontakte/icons-sprite>=2.3.1]: Удалить use client, если он появился в IconAppearanceProvider

import * as React from 'react';
import { IconAppearanceProvider } from '@vkontakte/icons';
import type { ColorSchemeType } from '../../lib/colorScheme';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import * as React from 'react';
import type { ColorSchemeType } from '../../lib/colorScheme';
import { platform, type PlatformType } from '../../lib/platform';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import * as React from 'react';
import type { ContentBadgeSizeType } from './types';

Expand Down
2 changes: 2 additions & 0 deletions packages/vkui/src/components/ModalRoot/ModalRootContext.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import * as React from 'react';
import { useIsomorphicLayoutEffect } from '../../lib/useIsomorphicLayoutEffect';
import type { ModalElements, ModalsStateEntry, ModalType } from './types';
Expand Down
2 changes: 2 additions & 0 deletions packages/vkui/src/components/NavIdContext/NavIdContext.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import * as React from 'react';

export const NavViewIdContext: React.Context<string | undefined> = React.createContext<
Expand Down
2 changes: 2 additions & 0 deletions packages/vkui/src/components/ScreenSpinner/context.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use client';

import * as React from 'react';
import { type ScreenSpinnerProps } from './types';

Expand Down

0 comments on commit 83106e3

Please sign in to comment.