Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
Fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hmhealey committed Nov 18, 2019
1 parent 31ac6ff commit 9463c02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions components/localized_input/localized_input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const LocalizedInput = React.forwardRef((props: Props, ref?: React.Ref<HTMLInput
defaultMessage={placeholder.defaultMessage}
values={placeholder.values}
>
{(localizedPlaceholder: string) => (
{(localizedPlaceholder: (string | JSX.Element)) => (
<input
{...otherProps}
ref={ref}
placeholder={localizedPlaceholder}
placeholder={localizedPlaceholder as string}
/>
)}
</FormattedMessage>
Expand Down
4 changes: 2 additions & 2 deletions components/widgets/modals/full_screen_modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import React from 'react';
import {CSSTransition} from 'react-transition-group';
import {injectIntl, IntlShape} from 'react-intl';
import {InjectedIntl, injectIntl} from 'react-intl';

import CloseIcon from 'components/widgets/icons/close_icon';
import BackIcon from 'components/widgets/icons/back_icon';
Expand All @@ -14,7 +14,7 @@ import './full_screen_modal.scss';
const ANIMATION_DURATION = 100;

type Props = {
intl: IntlShape;
intl: InjectedIntl;
show: boolean;
onClose: () => void;
onGoBack?: () => void;
Expand Down

0 comments on commit 9463c02

Please sign in to comment.