fix(ui): replace info-banner empty state in BehaviouralPrimitivesPanel with EmptyState
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import EmptyState from '../../EmptyState/EmptyState';
|
||||||
import { Activity } from '../../../icons';
|
import { Activity } from '../../../icons';
|
||||||
import type { AttributionPrimitiveState, BehaviouralObservation } from '../types';
|
import type { AttributionPrimitiveState, BehaviouralObservation } from '../types';
|
||||||
import { AttributionBadge } from './pieces';
|
import { AttributionBadge } from './pieces';
|
||||||
@@ -13,8 +14,12 @@ export const BehaviouralPrimitivesPanel: React.FC<{
|
|||||||
}> = ({ observations, attribution }) => {
|
}> = ({ observations, attribution }) => {
|
||||||
if (!observations.length) {
|
if (!observations.length) {
|
||||||
return (
|
return (
|
||||||
<div className="info-banner" data-testid="behaviour-empty">
|
<div data-testid="behaviour-empty">
|
||||||
<span className="dim">No behavioural observations yet — the profiler runs once a session ends.</span>
|
<EmptyState
|
||||||
|
icon={Activity}
|
||||||
|
title="NO BEHAVIOURAL OBSERVATIONS YET"
|
||||||
|
hint="The profiler runs once a session ends."
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user