Skip to content

Commit

Permalink
Merge pull request #840 from BIDMCDigitalPsychiatry/assoc-memory
Browse files Browse the repository at this point in the history
Funny memory game changes
  • Loading branch information
sarithapillai8 authored Oct 30, 2024
2 parents 679a9cb + 8506a99 commit 7e2f4ff
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 19 deletions.
38 changes: 20 additions & 18 deletions public/locales/hi/translation.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/components/EmbeddedActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const demoActivities = {
"lamp.symbol_digit_substitution": "symbol_digit_substitution",
"lamp.gyroscope": "gyroscope",
"lamp.dcog": "d-cog",
"lamp.simple_memory": "funnymemory",
}

export default function EmbeddedActivity({ participant, activity, name, onComplete, noBack, tab, ...props }) {
Expand Down
1 change: 1 addition & 0 deletions src/components/Researcher/ActivityList/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const games = [
"lamp.balloon_risk",
"lamp.spin_wheel",
"lamp.maze_game",
"lamp.simple_memory",
"lamp.emotion_recognition",
"lamp.symbol_digit_substitution",
"lamp.gyroscope",
Expand Down
3 changes: 2 additions & 1 deletion src/components/Researcher/ActivityList/AddActivity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
Link,
} from "@material-ui/core"

import LAMP from "lamp-core"
import LAMP, { ActivitySpec } from "lamp-core"
import { useTranslation } from "react-i18next"

const useStyles = makeStyles((theme: Theme) =>
Expand Down Expand Up @@ -158,6 +158,7 @@ export default function AddActivity({
"lamp.emotion_recognition": `${t("Emotion Recognition")}`,
"lamp.symbol_digit_substitution": `${t("Symbol-digit Substitution")}`,
"lamp.dcog": `${t("D-Cog")}`,
"lamp.simple_memory": `${t("Funny Memory Game")}`,
}

const getActivitySpec = async (id) => {
Expand Down
2 changes: 2 additions & 0 deletions src/components/Researcher/ActivityList/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const availableActivitySpecs = [
"lamp.balloon_risk",
"lamp.recording",
"lamp.spin_wheel",
"lamp.simple_memory",
"lamp.maze_game",
"lamp.emotion_recognition",
"lamp.symbol_digit_substitution",
Expand All @@ -74,6 +75,7 @@ export const games = [
"lamp.symbol_digit_substitution",
"lamp.gyroscope",
"lamp.dcog",
"lamp.simple_memory",
]
export default function ActivityList({
researcherId,
Expand Down
1 change: 1 addition & 0 deletions src/components/Survey.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const games = [
"lamp.symbol_digit_substitution",
"lamp.gyroscope",
"lamp.dcog",
"lamp.simple_memory",
]

export default function Survey({ participant, activities, showStreak, ...props }) {
Expand Down

0 comments on commit 7e2f4ff

Please sign in to comment.