26 lines
583 B
React
26 lines
583 B
React
|
// @flow
|
||
|
import React from 'react';
|
||
|
import { FormField } from 'component/common/form';
|
||
|
|
||
|
type Props = {
|
||
|
setClientSetting: (boolean) => void,
|
||
|
enablePrereleases: boolean,
|
||
|
};
|
||
|
function SettingEnablePrereleases(props: Props) {
|
||
|
const { setClientSetting, enablePrereleases } = props;
|
||
|
return (
|
||
|
<React.Fragment>
|
||
|
<FormField
|
||
|
type="checkbox"
|
||
|
name="prereleases"
|
||
|
onChange={() => {
|
||
|
setClientSetting(!enablePrereleases);
|
||
|
}}
|
||
|
checked={enablePrereleases}
|
||
|
/>
|
||
|
</React.Fragment>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default SettingEnablePrereleases;
|