Skip to content

Commit

Permalink
Merge pull request #2874 from marmelab/typescript-migration-i18n
Browse files Browse the repository at this point in the history
[RFR] Finalize ra-core i18n Migration to TypeScript
  • Loading branch information
fzaninotto authored Feb 13, 2019
2 parents eed959d + 8e2fba3 commit e731472
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import React from 'react';
import React, { SFC } from 'react';

import translate from './translate';
import { TranslationContextProps } from './TranslationContext';

interface Props extends TranslationContextProps {
foo: string;
}
describe('translate HOC', () => {
it('should conserve base component default props', () => {
const Component = () => <div />;
const Component: SFC<Props> = () => <div />;
Component.defaultProps = { foo: 'bar' };

const TranslatedComponent = translate(Component);
Expand Down

0 comments on commit e731472

Please sign in to comment.