mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-18 09:00:30 -05:00
added View all link at top of studios list
This commit is contained in:
parent
b452f73a32
commit
7f2fbd4a3b
4 changed files with 17 additions and 5 deletions
|
@ -22,7 +22,7 @@
|
||||||
"project.remixButton.altText": "Save a copy of this project and add your own ideas.",
|
"project.remixButton.altText": "Save a copy of this project and add your own ideas.",
|
||||||
"project.remixButton.remixing": "Remixing...",
|
"project.remixButton.remixing": "Remixing...",
|
||||||
"project.remixes": "Remixes",
|
"project.remixes": "Remixes",
|
||||||
"project.viewAllRemixes": "View all",
|
"project.viewAllInList": "View all",
|
||||||
"project.inviteToRemix": "Invite user to remix",
|
"project.inviteToRemix": "Invite user to remix",
|
||||||
"project.instructionsLabel": "Instructions",
|
"project.instructionsLabel": "Instructions",
|
||||||
"project.notesAndCreditsLabel": "Notes and Credits",
|
"project.notesAndCreditsLabel": "Notes and Credits",
|
||||||
|
|
|
@ -577,7 +577,10 @@ const PreviewPresentation = ({
|
||||||
projectId={projectId}
|
projectId={projectId}
|
||||||
remixes={remixes}
|
remixes={remixes}
|
||||||
/>
|
/>
|
||||||
<StudioList studios={projectStudios} />
|
<StudioList
|
||||||
|
projectId={projectId}
|
||||||
|
studios={projectStudios}
|
||||||
|
/>
|
||||||
</FlexRow>
|
</FlexRow>
|
||||||
</FlexRow>
|
</FlexRow>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -17,7 +17,7 @@ const RemixList = props => {
|
||||||
<div className="list-header-spacer" />
|
<div className="list-header-spacer" />
|
||||||
<div className="list-header-link">
|
<div className="list-header-link">
|
||||||
<a href={`/projects/${props.projectId}/remixes`}>
|
<a href={`/projects/${props.projectId}/remixes`}>
|
||||||
<FormattedMessage id="project.viewAllRemixes" />
|
<FormattedMessage id="project.viewAllInList" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,8 +10,16 @@ const StudioList = props => {
|
||||||
if (studios.length === 0) return null;
|
if (studios.length === 0) return null;
|
||||||
return (
|
return (
|
||||||
<FlexRow className="studio-list">
|
<FlexRow className="studio-list">
|
||||||
<div className="list-title">
|
<div className="list-header">
|
||||||
<FormattedMessage id="general.studios" />
|
<div className="list-title">
|
||||||
|
<FormattedMessage id="general.studios" />
|
||||||
|
</div>
|
||||||
|
<div className="list-header-spacer" />
|
||||||
|
<div className="list-header-link">
|
||||||
|
<a href={`/projects/${props.projectId}/studios`}>
|
||||||
|
<FormattedMessage id="project.viewAllInList" />
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{studios.length === 0 ? (
|
{studios.length === 0 ? (
|
||||||
// TODO: style remix invitation
|
// TODO: style remix invitation
|
||||||
|
@ -32,6 +40,7 @@ const StudioList = props => {
|
||||||
};
|
};
|
||||||
|
|
||||||
StudioList.propTypes = {
|
StudioList.propTypes = {
|
||||||
|
projectId: PropTypes.string,
|
||||||
studios: PropTypes.arrayOf(projectShape)
|
studios: PropTypes.arrayOf(projectShape)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue