diff --git a/sites/shared/components/curated-sets.mjs b/sites/shared/components/curated-sets.mjs
index 1e67ecae7ca..0bc421fa2ad 100644
--- a/sites/shared/components/curated-sets.mjs
+++ b/sites/shared/components/curated-sets.mjs
@@ -50,14 +50,7 @@ import {
export const ns = ['account', 'patterns', 'status', 'measurements', 'sets', inputNs]
-const SetNameWrapper = ({ name, children }) => (
-
- {children}
- {name}
-
-)
-
-const SetLineup = ({ sets = [], lang, href = false, onClick = false }) => (
+const SetLineup = ({ sets = [], href = false, onClick = false }) => (
1 ? 'justify-start px-8' : 'justify-center'
@@ -83,10 +76,9 @@ const SetLineup = ({ sets = [], lang, href = false, onClick = false }) => (
if (onClick) props.onClick = () => onClick(set)
else if (typeof href === 'function') props.href = href(set.id)
- let img =
- if (onClick) img =
- else if (href) img =
- return
{img}
+ if (onClick) return
+ else if (href) return
+ else return
})}
)
@@ -103,7 +95,7 @@ const ShowCuratedSet = ({ cset }) => {
<>
{cset[`name${capitalize(lang)}`]}
-
+
@@ -214,8 +206,6 @@ export const CuratedSets = ({ href = false, clickHandler = false, published = tr
// Hooks
const backend = useBackend()
const { setLoadingStatus } = useContext(LoadingStatusContext)
- const { i18n } = useTranslation(ns)
- const lang = i18n.language
// State
const [sets, setSets] = useState([])
@@ -246,7 +236,7 @@ export const CuratedSets = ({ href = false, clickHandler = false, published = tr
return (
-
+
{selected && }
)
@@ -255,8 +245,7 @@ export const CuratedSets = ({ href = false, clickHandler = false, published = tr
// Component for the maintaining the list of curated-sets
export const CuratedSetsList = ({ href = false }) => {
// Hooks
- const { t, i18n } = useTranslation(ns)
- const lang = i18n.language
+ const { t } = useTranslation(ns)
const backend = useBackend()
const { setLoadingStatus, LoadingProgress } = useContext(LoadingStatusContext)
const [refresh, setRefresh] = useState(0)
@@ -382,7 +371,7 @@ export const CuratedSetsList = ({ href = false }) => {
))}
-
+
)
}