From 176ceee245d93d3071f6888330b55fea5e5898b6 Mon Sep 17 00:00:00 2001 From: sylenien Date: Wed, 7 Sep 2022 15:16:00 +0200 Subject: [PATCH] feat(ui): redesign errors modal --- .../components/Errors/Error/MainSection.js | 78 +++---------------- frontend/app/components/Errors/ui/Label.js | 8 +- 2 files changed, 16 insertions(+), 70 deletions(-) diff --git a/frontend/app/components/Errors/Error/MainSection.js b/frontend/app/components/Errors/Error/MainSection.js index 35b1fef7e..96dcb8b41 100644 --- a/frontend/app/components/Errors/Error/MainSection.js +++ b/frontend/app/components/Errors/Error/MainSection.js @@ -74,87 +74,33 @@ export default class MainSection extends React.PureComponent { message={error.stack0InfoString} lineThrough={error.status === RESOLVED} /> -
-
+
+
{error.message}
-
+
-
Over the past 30 days
- {/* -
- { error.status === UNRESOLVED - ? - : - } - { error.status !== IGNORED && - - } - - - } - /> -
*/} - {!isPlayer && ( -
+
+

Last session with this error

{resentOrDate(error.lastOccurrence)} - - +
- )} + + {/* meta tags place */} +
diff --git a/frontend/app/components/Errors/ui/Label.js b/frontend/app/components/Errors/ui/Label.js index a82b0328a..bb8b33eff 100644 --- a/frontend/app/components/Errors/ui/Label.js +++ b/frontend/app/components/Errors/ui/Label.js @@ -1,10 +1,10 @@ import React from 'react'; import cn from "classnames"; -function Label({ className, topValue, topValueSize = 'text-base', bottomValue, topMuted = false, bottomMuted = false }) { +function Label({ className, topValue, topValueSize = 'text-base', bottomValue, topMuted = false, bottomMuted = false, horizontal = false }) { return ( -
-
{ topValue }
+
+
{ topValue }
{ bottomValue }
); @@ -12,4 +12,4 @@ function Label({ className, topValue, topValueSize = 'text-base', bottomValue, t Label.displayName = "Label"; -export default Label; \ No newline at end of file +export default Label;