Commit 6ac3012b authored by Paul Kaplan's avatar Paul Kaplan

Use formatted message

parent 62b1f8f3
...@@ -25,5 +25,9 @@ ...@@ -25,5 +25,9 @@
"studio.inviteCurator": "Invite", "studio.inviteCurator": "Invite",
"studio.curatorAcceptInvite": "Accept Invite", "studio.curatorAcceptInvite": "Accept Invite",
"studio.commentsHeader": "Comments" "studio.commentsHeader": "Comments",
"studio.sharedFilter": "Shared",
"studio.favoritedFilter": "Favorited",
"studio.recentFilter": "Recent"
} }
\ No newline at end of file
...@@ -3,6 +3,7 @@ import React, {useEffect, useState} from 'react'; ...@@ -3,6 +3,7 @@ import React, {useEffect, useState} from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import classNames from 'classnames'; import classNames from 'classnames';
import {FormattedMessage} from 'react-intl';
import {addProject, removeProject} from '../lib/studio-project-actions'; import {addProject, removeProject} from '../lib/studio-project-actions';
import {userProjects} from '../lib/redux-modules'; import {userProjects} from '../lib/redux-modules';
...@@ -45,19 +46,19 @@ const UserProjectsModal = ({ ...@@ -45,19 +46,19 @@ const UserProjectsModal = ({
className={classNames({active: filter === Filters.SHARED})} className={classNames({active: filter === Filters.SHARED})}
onClick={() => setFilter(Filters.SHARED)} onClick={() => setFilter(Filters.SHARED)}
> >
Shared <FormattedMessage id="studio.sharedFilter" />
</li> </li>
<li <li
className={classNames({active: filter === Filters.FAVORITED})} className={classNames({active: filter === Filters.FAVORITED})}
onClick={() => setFilter(Filters.FAVORITED)} onClick={() => setFilter(Filters.FAVORITED)}
> >
Favorited <FormattedMessage id="studio.favoritedFilter" />
</li> </li>
<li <li
className={classNames({active: filter === Filters.RECENT})} className={classNames({active: filter === Filters.RECENT})}
onClick={() => setFilter(Filters.RECENT)} onClick={() => setFilter(Filters.RECENT)}
> >
Recent <FormattedMessage id="studio.recentFilter" />
</li> </li>
</SubNavigation> </SubNavigation>
<ModalInnerContent className="user-projects-modal-content"> <ModalInnerContent className="user-projects-modal-content">
...@@ -78,7 +79,7 @@ const UserProjectsModal = ({ ...@@ -78,7 +79,7 @@ const UserProjectsModal = ({
{loading ? <small>Loading...</small> : ( {loading ? <small>Loading...</small> : (
moreToLoad ? moreToLoad ?
<button onClick={() => onLoadMore(filter)}> <button onClick={() => onLoadMore(filter)}>
Load more <FormattedMessage id="general.loadMore" />
</button> : </button> :
<small>No more to load</small> <small>No more to load</small>
)} )}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment