Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Use injectIntl from react-intl-phraseapp
Browse files Browse the repository at this point in the history
  • Loading branch information
Sönke Behrendt committed Feb 26, 2018
1 parent d70aa47 commit 380a5b3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from 'react';
import {FormattedMessage} from 'react-intl-phraseapp';
import { FormattedMessage, injectIntl } from 'react-intl-phraseapp';
import logo from './logo.svg';
import './App.css';

Expand All @@ -13,13 +13,13 @@ class App extends Component {
</div>
<p className="App-intro">
<FormattedMessage
id="welcome.text"
defaultMessage={`We hope this example will help you integrate PhraseApp into your react app using react-intl`}
/>
id="welcome.text"
defaultMessage={`We hope this example will help you integrate PhraseApp into your react app using react-intl`}
/>
</p>
</div>
);
}
}

export default App;
export default injectIntl(App);

0 comments on commit 380a5b3

Please sign in to comment.