Skip to content

Commit

Permalink
Removed commented out code (LearningWorldScorePanel & AvatarEditorBod…
Browse files Browse the repository at this point in the history
…yCategory)
  • Loading branch information
Lizardguard committed Feb 26, 2025
1 parent 50db655 commit 3108a70
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,45 +38,6 @@ export default function AvatarEditorBodyCategory(
}}
/>
</div>
{/* <div className="pb-2 border-b border-gray-500">
<h1 className="text-2xl font-bold">
{translate("bodyProportionsTitle")}
</h1>
</div>
<div className="bodyProportionContainer">
<div className="flex items-center">
<h3 className="text-xl font-bold">{translate("upperBodyTitle")}</h3>
</div>
<div>
<RangeSlider
min={0}
max={1}
step={0.01}
callback={(value) => {
props.controller.onAvatarConfigChanged({ roundness: value });
}}
displayFactor={100}
buttons={{ imageLeft: bodySmallIcon, imageRight: bodyBigIcon }}
/>
</div>
<div className="flex items-center">
<h3 className="text-xl font-bold">{translate("lowerBodyTitle")}</h3>
</div>
<div>
<RangeSlider
min={0}
max={1}
step={0.01}
callback={(value) => {
props.controller.onAvatarConfigChanged({ roundness: value });
}}
displayFactor={100}
buttons={{ imageLeft: bodySmallIcon, imageRight: bodyBigIcon }}
/>
</div>
</div> */}
</div>
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ export default function LearningWorldScorePanel({
setPercentage((scoreInfo.currentScore / scoreInfo.requiredScore) * 100);
}, [scoreInfo?.currentScore, scoreInfo?.requiredScore, scoreInfo]);

// useEffect(() => {
// const calculateWorldScore =
// CoreDIContainer.get<ICalculateLearningWorldScoreUseCase>(
// USECASE_TYPES.ICalculateLearningWorldScoreUseCase,
// );

// try {
// calculateWorldScore.execute();
// } catch (e) {
// CoreDIContainer.get<ILoggerPort>(CORE_TYPES.ILogger).log(
// LogLevelTypes.ERROR,
// `LearningWorldScorePanel: Error while calculating world score. Error: ${e}`,
// );
// }
// }, []);

if (!viewModel) return null;

return (
Expand Down

0 comments on commit 3108a70

Please sign in to comment.