next-helios-fe 1.10.2 → 1.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.10.2",
3
+ "version": "1.10.4",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -75,16 +75,6 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
75
75
  }
76
76
  }, [value]);
77
77
 
78
- useEffect(() => {
79
- if (dynamicSelect?.getValue) {
80
- setSelectedMenuHistory(
81
- data.menus.filter((menuItem: any) =>
82
- (type === "select" ? [value] : value || []).includes(menuItem.value)
83
- )
84
- );
85
- }
86
- }, [data.menus]);
87
-
88
78
  useEffect(() => {
89
79
  if (!loading) {
90
80
  if (openModal) {
@@ -299,10 +289,10 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
299
289
  )
300
290
  ).map((optionItem: any, index: number) => {
301
291
  return (
302
- <Button
292
+ <button
303
293
  key={index}
304
294
  type="button"
305
- className={`${
295
+ className={`px-3 py-1.5 rounded-md text-left hover:bg-secondary-light ${
306
296
  type === "select"
307
297
  ? "disabled:bg-primary-transparent disabled:text-primary"
308
298
  : "disabled:text-disabled"
@@ -402,7 +392,7 @@ export const ModalSelect: React.FC<ModalSelectProps> = ({
402
392
  </div>
403
393
  </div>
404
394
  )}
405
- </Button>
395
+ </button>
406
396
  );
407
397
  })
408
398
  )}