Skip to content

Commit

Permalink
remove helpText prop from Custom field
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Jun 17, 2020
1 parent dfcd4cc commit f955b0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { i18n } from '@kbn/i18n';
import { FormattedMessage } from '@kbn/i18n/react';
import React, { FunctionComponent, memo, useEffect } from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const customConfig: FieldConfig = {

interface Props {
defaultOptions?: any;
helpText?: string | React.ReactNode;
}

/**
Expand All @@ -68,10 +67,9 @@ interface Props {
*
* We store the settings in a field called "customOptions"
**/
export const Custom: FunctionComponent<Props> = ({ defaultOptions, helpText }) => {
export const Custom: FunctionComponent<Props> = ({ defaultOptions }) => {
return (
<UseField
helpText={helpText}
path="customOptions"
component={JsonEditorField}
config={customConfig}
Expand Down

0 comments on commit f955b0a

Please sign in to comment.