Skip to content

Commit

Permalink
build: Resolve the build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieweiyi committed Sep 19, 2024
1 parent 0cc355e commit 404cf3e
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions packages/threat-composer/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { z } from 'zod';
import useContentValidation from '../../../hooks/useContentValidation';

export interface AutosuggestProps extends FormFieldProps, Omit<CloudscapeAutosuggestProps, 'errorText'> {
ref?: React.ForwardedRef<any>;
ref?: React.LegacyRef<any>;
validateData?: (newValue: string) => z.SafeParseReturnType<string | undefined, string | undefined>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { z } from 'zod';
import useContentValidation from '../../../hooks/useContentValidation';

export interface InputProps extends FormFieldProps, InputComponentProps {
ref?: React.ForwardedRef<any>;
ref?: React.LegacyRef<any>;
validateData?: (newValue: string) => z.SafeParseReturnType<string | undefined, string | undefined>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface LevelSelectorProps {
allowNoValue?: boolean;
onFocus?: () => void;
onBlur?: () => void;
ref?: React.LegacyRef<SelectProps.Ref>;
}

const LevelSelector: FC<LevelSelectorProps> = React.forwardRef<SelectProps.Ref, LevelSelectorProps>(({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface StatusSelectorProps {
showLabel?: boolean;
onFocus?: () => void;
onBlur?: () => void;
ref?: React.ForwardedRef<any>;
ref?: React.LegacyRef<any>;
}

const StatusSelector: FC<StatusSelectorProps> = React.forwardRef<SelectProps.Ref, StatusSelectorProps>(({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { z } from 'zod';
import useContentValidation from '../../../hooks/useContentValidation';

export interface TextAreaProps extends FormFieldProps, TextareaComponetProps {
ref?: React.ForwardedRef<any>;
ref?: React.LegacyRef<any>;
validateData?: (newValue: string) => z.SafeParseReturnType<string | undefined, string | undefined>;
singleLine?: boolean;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const parseToken = (statements: TemplateThreatStatement[], token: PropertyFilter
return result;
};

const FullExamples: FC<FullExamplesProps & { ref?: React.ForwardedRef<any> }> = forwardRef(({
const FullExamples: FC<FullExamplesProps & { ref?: React.LegacyRef<any> }> = forwardRef(({
onClick,
}, ref) => {
const { threatStatementExamples } = useThreatsContext();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export interface PriorityEditProps {
onEditMetadata: (statement: TemplateThreatStatement, key: string, value: string | string[] | undefined) => void;
onFocus?: () => void;
onBlur?: () => void;
ref?: React.ForwardedRef<any>;
ref?: React.LegacyRef<any>;
}

const PriorityEdit: FC<PriorityEditProps> = React.forwardRef<React.ForwardedRef<SelectProps.Ref>, PriorityEditProps>(({
const PriorityEdit: FC<PriorityEditProps> = React.forwardRef<SelectProps.Ref, PriorityEditProps>(({
editingStatement,
onEditMetadata,
showLabel = true,
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 404cf3e

Please sign in to comment.