From 69d6408e5be06fee08c460b0d0bcd8de549bf401 Mon Sep 17 00:00:00 2001
From: nukeop <12746779+nukeop@users.noreply.github.com>
Date: Thu, 26 Oct 2023 00:46:06 +0200
Subject: [PATCH] Remove recompose from AlbumListComponent
---
.../app/app/components/AlbumList/index.js | 19 +++++++++----------
packages/app/package.json | 4 ++--
2 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/packages/app/app/components/AlbumList/index.js b/packages/app/app/components/AlbumList/index.js
index 9bd778731f..1e01c9452d 100644
--- a/packages/app/app/components/AlbumList/index.js
+++ b/packages/app/app/components/AlbumList/index.js
@@ -1,13 +1,12 @@
import React from 'react';
-import {compose, withHandlers} from 'recompose';
import {AlbumGrid} from '@nuclear/ui';
-const AlbumListComponent = props => ;
-export default compose(
- withHandlers({
- onAlbumClick: ({albumInfoSearch, history}) => (album) => {
- albumInfoSearch(album.id, album.type, album);
- history.push('/album/' + album.id);
- }
- })
-)(AlbumListComponent);
+const AlbumListComponent = props => {
+ const onAlbumClick = (album) => {
+ props.albumInfoSearch(album.id, album.type, album);
+ props.history.push('/album/' + album.id);
+ };
+
+ return ;
+};
+export default AlbumListComponent;
diff --git a/packages/app/package.json b/packages/app/package.json
index 70c1d069ab..bb4f4435e4 100644
--- a/packages/app/package.json
+++ b/packages/app/package.json
@@ -7,7 +7,7 @@
"start": "webpack-dev-server --env NODE_ENV=development",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 webpack --progress --env NODE_ENV=production",
"test": "cross-env TZ=GMT jest --silent",
- "coverage": "cross-env TZ=GMT jest --coverage",
+ "coverage": "cross-env TZ=GMT jest --coverage --silent",
"lint": "eslint \"{app,test}/**/**.{js,jsx,ts,tsx}\"",
"lint:fix": "eslint \"{app,test}/**/**.{js,jsx,ts,tsx}\" --fix",
"i18n": "sync-i18n --files 'app/locales/*.json' --primary en --languages fr tl nl de dk es pl zh ru tr id sk ko zh_tw se gr hr is --space 2"
@@ -131,4 +131,4 @@
"webpack-cli": "^4.9.2",
"webpack-dev-server": "^4.7.4"
}
-}
+}
\ No newline at end of file