mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 20:20:00 +08:00
afa4442a10
* refactor: add optionType for Radio internally * fix: lint * fix: update snapshot * feat: remove useless condition for RadioGroupContext * test: add test case for Radio.Button
12 lines
486 B
TypeScript
12 lines
486 B
TypeScript
import * as React from 'react';
|
|
import { RadioGroupContextProps, RadioOptionTypeContextProps } from './interface';
|
|
|
|
const RadioGroupContext = React.createContext<RadioGroupContextProps | null>(null);
|
|
|
|
export const RadioGroupContextProvider = RadioGroupContext.Provider;
|
|
|
|
export default RadioGroupContext;
|
|
|
|
export const RadioOptionTypeContext = React.createContext<RadioOptionTypeContextProps | null>(null);
|
|
export const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;
|