mirror of
https://github.com/SomboChea/ui
synced 2026-01-19 01:25:51 +07:00
* chore: refactoring version page * refactor: migrate version page to hooks * refactor: Version page better imports * fix: #100 render not found on click item * test: add test for version page * chore: update mocks * test: add scenario for not found package * chore: fix wrong mock path * chore: update mock * chore: add todo list
This commit is contained in:
committed by
GitHub
parent
e7d3c461cd
commit
97e8448098
7
src/pages/Version/context.ts
Normal file
7
src/pages/Version/context.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import React, { Consumer, Provider } from 'react';
|
||||
import { DetailContextProps, VersionPageConsumerProps } from './types';
|
||||
|
||||
export const DetailContext = React.createContext<Partial<DetailContextProps>>({});
|
||||
|
||||
export const DetailContextProvider: Provider<Partial<VersionPageConsumerProps>> = DetailContext.Provider;
|
||||
export const DetailContextConsumer: Consumer<Partial<VersionPageConsumerProps>> = DetailContext.Consumer;
|
||||
Reference in New Issue
Block a user