Skip to content

Commit

Permalink
Add MetricChart in webapp test
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed Dec 27, 2024
1 parent 1db946c commit 31b542e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/webapp/src/routes/test/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,26 @@
IconTelegram,
IconWalletConnect,
IconWarning,
IconExternalLink
IconExternalLink,
MetricChart
} from '@rainlanguage/ui-components';
let isLoading: boolean = true;
// Mock data for `metric` prop
const metric = {
label: 'Test Metric',
description: 'This is a test metric.',
'unit-prefix': '$',
'unit-suffix': ' USD',
value: 'testValue',
precision: 2
};
// Mock data for `data` prop
const data = [
{
testValue: 1234.5678
}
];
</script>

<div>
Expand All @@ -24,4 +41,5 @@
<IconTelegram dark />
<IconWalletConnect />
<IconWarning />
<MetricChart {metric} {data} />
</div>

0 comments on commit 31b542e

Please sign in to comment.