mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Remove default messages from translations
This commit is contained in:
parent
6fc2628c81
commit
5cb3146e85
2 changed files with 4 additions and 10 deletions
|
|
@ -7,13 +7,10 @@ const HeroSection = props => (
|
|||
<div className={css.content}>
|
||||
<div className={css.titleWrapper}>
|
||||
<div className={css.title}>
|
||||
<FormattedMessage id={'HeroSection.title'} defaultMessage={'Book Studiotime anywhere'} />
|
||||
<FormattedMessage id="HeroSection.title" />
|
||||
</div>
|
||||
<div className={css.subTitle}>
|
||||
<FormattedMessage
|
||||
id={'HeroSection.subTitle'}
|
||||
defaultMessage={'The largest online community to rent music studios'}
|
||||
/>
|
||||
<FormattedMessage id="HeroSection.subTitle" />
|
||||
</div>
|
||||
</div>
|
||||
<div className={css.ctaWrapper}>
|
||||
|
|
|
|||
|
|
@ -6,10 +6,7 @@ import css from './HeroSearchForm.css';
|
|||
const HeroSearchForm = props => {
|
||||
const { className, intl, handleSubmit, pristine, submitting } = props;
|
||||
const addClassName = className ? { className } : {};
|
||||
const placeholderMsg = {
|
||||
id: 'HeroSearchForm.placeholder',
|
||||
defaultMessage: 'Location search (soon)',
|
||||
};
|
||||
const placeholderMsg = { id: 'HeroSearchForm.placeholder' };
|
||||
|
||||
return (
|
||||
<form {...addClassName} onSubmit={handleSubmit}>
|
||||
|
|
@ -21,7 +18,7 @@ const HeroSearchForm = props => {
|
|||
placeholder={intl.formatMessage(placeholderMsg)}
|
||||
/>
|
||||
<button className={css.locationButton} type="submit" disabled={pristine || submitting}>
|
||||
<FormattedMessage id="HeroSearchForm.search" defaultMessage="Search" />
|
||||
<FormattedMessage id="HeroSearchForm.search" />
|
||||
</button>
|
||||
</form>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue