Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ecolyo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
Ecolyo
Commits
ca31a115
Commit
ca31a115
authored
5 months ago
by
Bastien DUMONT
Browse files
Options
Downloads
Patches
Plain Diff
chore(smell): duplicate case
parent
ab2a31ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Action/ActionView.tsx
+1
-4
1 addition, 4 deletions
src/components/Action/ActionView.tsx
with
1 addition
and
4 deletions
src/components/Action/ActionView.tsx
+
1
−
4
View file @
ca31a115
...
@@ -22,14 +22,11 @@ const ActionView = () => {
...
@@ -22,14 +22,11 @@ const ActionView = () => {
const
renderAction
=
(
challenge
:
UserChallenge
)
=>
{
const
renderAction
=
(
challenge
:
UserChallenge
)
=>
{
switch
(
challenge
.
action
.
state
)
{
switch
(
challenge
.
action
.
state
)
{
case
UserActionState
.
UNSTARTED
:
return
(
<
ActionChoose
userChallenge
=
{
challenge
}
setFocus
=
{
focusMainContent
}
/>
)
case
UserActionState
.
ONGOING
:
case
UserActionState
.
ONGOING
:
return
<
ActionOnGoing
userAction
=
{
challenge
.
action
}
/>
return
<
ActionOnGoing
userAction
=
{
challenge
.
action
}
/>
case
UserActionState
.
NOTIFICATION
:
case
UserActionState
.
NOTIFICATION
:
return
<
ActionDone
currentChallenge
=
{
challenge
}
/>
return
<
ActionDone
currentChallenge
=
{
challenge
}
/>
case
UserActionState
.
UNSTARTED
:
default
:
default
:
return
(
return
(
<
ActionChoose
userChallenge
=
{
challenge
}
setFocus
=
{
focusMainContent
}
/>
<
ActionChoose
userChallenge
=
{
challenge
}
setFocus
=
{
focusMainContent
}
/>
...
...
This diff is collapsed.
Click to expand it.
build-token
@group_1518_bot_2801ee8bae68451533dcea1179b03710
mentioned in commit
65d6732a
·
5 months ago
mentioned in commit
65d6732a
mentioned in commit 65d6732aa4427e6aba95661f1b8fa0a4ea42f03c
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment