Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
6ac3012b
Commit
6ac3012b
authored
May 10, 2021
by
Paul Kaplan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use formatted message
parent
62b1f8f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/views/studio/l10n.json
src/views/studio/l10n.json
+5
-1
src/views/studio/modals/user-projects-modal.jsx
src/views/studio/modals/user-projects-modal.jsx
+5
-4
No files found.
src/views/studio/l10n.json
View file @
6ac3012b
...
...
@@ -25,5 +25,9 @@
"studio.inviteCurator"
:
"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
src/views/studio/modals/user-projects-modal.jsx
View file @
6ac3012b
...
...
@@ -3,6 +3,7 @@ import React, {useEffect, useState} from 'react';
import
PropTypes
from
'
prop-types
'
;
import
{
connect
}
from
'
react-redux
'
;
import
classNames
from
'
classnames
'
;
import
{
FormattedMessage
}
from
'
react-intl
'
;
import
{
addProject
,
removeProject
}
from
'
../lib/studio-project-actions
'
;
import
{
userProjects
}
from
'
../lib/redux-modules
'
;
...
...
@@ -45,19 +46,19 @@ const UserProjectsModal = ({
className=
{
classNames
({
active
:
filter
===
Filters
.
SHARED
})
}
onClick=
{
()
=>
setFilter
(
Filters
.
SHARED
)
}
>
Shared
<
FormattedMessage
id=
"studio.sharedFilter"
/>
</
li
>
<
li
className=
{
classNames
({
active
:
filter
===
Filters
.
FAVORITED
})
}
onClick=
{
()
=>
setFilter
(
Filters
.
FAVORITED
)
}
>
Favorited
<
FormattedMessage
id=
"studio.favoritedFilter"
/>
</
li
>
<
li
className=
{
classNames
({
active
:
filter
===
Filters
.
RECENT
})
}
onClick=
{
()
=>
setFilter
(
Filters
.
RECENT
)
}
>
Recent
<
FormattedMessage
id=
"studio.recentFilter"
/>
</
li
>
</
SubNavigation
>
<
ModalInnerContent
className=
"user-projects-modal-content"
>
...
...
@@ -78,7 +79,7 @@ const UserProjectsModal = ({
{
loading
?
<
small
>
Loading...
</
small
>
:
(
moreToLoad
?
<
button
onClick=
{
()
=>
onLoadMore
(
filter
)
}
>
Load more
<
FormattedMessage
id=
"general.loadMore"
/>
</
button
>
:
<
small
>
No more to load
</
small
>
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment