change(ui) - error and sessions border
This commit is contained in:
parent
941f8c9b11
commit
661a4364dc
5 changed files with 11 additions and 9 deletions
|
|
@ -44,7 +44,9 @@ function CustomMetricTableErrors(props: RouteComponentProps<Props>) {
|
|||
>
|
||||
<div className="pb-4">
|
||||
{metric.data.errors && metric.data.errors.map((error: any, index: any) => (
|
||||
<ErrorListItem key={index} error={error} onClick={(e) => onErrorClick(e, error)} />
|
||||
<div key={index} className="broder-b last:border-none">
|
||||
<ErrorListItem error={error} onClick={(e) => onErrorClick(e, error)} />
|
||||
</div>
|
||||
))}
|
||||
|
||||
{isEdit && (
|
||||
|
|
|
|||
|
|
@ -20,8 +20,8 @@ function CustomMetricTableSessions(props: Props) {
|
|||
>
|
||||
<div className="pb-4">
|
||||
{metric.data.sessions && metric.data.sessions.map((session: any, index: any) => (
|
||||
<div className="border-b last:border-none">
|
||||
<SessionItem session={session} key={session.sessionId} />
|
||||
<div className="border-b last:border-none" key={session.sessionId}>
|
||||
<SessionItem session={session} />
|
||||
</div>
|
||||
))}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ function ErrorListItem(props: Props) {
|
|||
// }
|
||||
return (
|
||||
<div
|
||||
className={ cn("p-3 border-b grid grid-cols-12 gap-4 cursor-pointer py-4 hover:bg-active-blue", className) }
|
||||
className={ cn("p-3 grid grid-cols-12 gap-4 cursor-pointer py-4 hover:bg-active-blue", className) }
|
||||
id="error-item"
|
||||
onClick={props.onClick}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ function EmptyStage({ total }: any) {
|
|||
<div className="w-fit px-2 border border-teal py-1 text-center justify-center bg-teal-lightest flex items-center rounded-full color-teal" style={{ width: '100px'}}>
|
||||
{`+${total} ${total > 1 ? 'steps' : 'step'}`}
|
||||
</div>
|
||||
<div className="border-b w-full border-dotted"></div>
|
||||
<div className="border-b w-full border-dashed"></div>
|
||||
</div>
|
||||
))
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { List, Map } from 'immutable';
|
|||
import Role from 'Types/role';
|
||||
import crudDuckGenerator from './tools/crudDuck';
|
||||
import { reduceDucks } from 'Duck/tools';
|
||||
import { array, request, success, failure, createListUpdater, mergeReducers } from './funcTools/tools';
|
||||
import { createListUpdater } from './funcTools/tools';
|
||||
|
||||
const crudDuck = crudDuckGenerator('client/role', Role, { idKey: 'roleId' });
|
||||
export const { fetchList, init, edit, remove, } = crudDuck.actions;
|
||||
|
|
@ -14,14 +14,14 @@ const initialState = Map({
|
|||
permissions: List([
|
||||
{ text: 'Session Replay', value: 'SESSION_REPLAY' },
|
||||
{ text: 'Developer Tools', value: 'DEV_TOOLS' },
|
||||
{ text: 'Errors', value: 'ERRORS' },
|
||||
{ text: 'Metrics', value: 'METRICS' },
|
||||
// { text: 'Errors', value: 'ERRORS' },
|
||||
{ text: 'Dashboard', value: 'METRICS' },
|
||||
{ text: 'Assist (Live)', value: 'ASSIST_LIVE' },
|
||||
{ text: 'Assist (Call)', value: 'ASSIST_CALL' },
|
||||
])
|
||||
});
|
||||
|
||||
const name = "role";
|
||||
// const name = "role";
|
||||
const idKey = "roleId";
|
||||
|
||||
const updateItemInList = createListUpdater(idKey);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue