2022-03-14 13:18:11 +00:00
|
|
|
import {
|
|
|
|
AgGridDynamic as AgGrid,
|
|
|
|
Button,
|
|
|
|
Callout,
|
|
|
|
} from '@vegaprotocol/ui-toolkit';
|
|
|
|
import { AgGridColumn } from 'ag-grid-react';
|
2022-02-23 17:57:44 +00:00
|
|
|
|
|
|
|
export function Index() {
|
2022-03-14 13:18:11 +00:00
|
|
|
const rowData = [
|
|
|
|
{ make: 'Toyota', model: 'Celica', price: 35000 },
|
|
|
|
{ make: 'Ford', model: 'Mondeo', price: 32000 },
|
|
|
|
{ make: 'Porsche', model: 'Boxter', price: 72000 },
|
|
|
|
];
|
2022-02-11 13:56:28 +00:00
|
|
|
return (
|
2022-03-10 00:33:56 +00:00
|
|
|
<div className="m-24">
|
2022-03-14 13:18:11 +00:00
|
|
|
<div className="mb-24">
|
|
|
|
<Callout
|
|
|
|
intent="help"
|
|
|
|
title="Welcome to Vega Trading App"
|
|
|
|
iconName="endorsed"
|
|
|
|
headingLevel={1}
|
|
|
|
>
|
|
|
|
<div className="flex flex-col">
|
|
|
|
<div>With a longer explaination</div>
|
|
|
|
<Button className="block mt-8" variant="secondary">
|
|
|
|
Action
|
|
|
|
</Button>
|
|
|
|
</div>
|
|
|
|
</Callout>
|
|
|
|
</div>
|
|
|
|
<AgGrid rowData={rowData} style={{ height: 400, width: 600 }}>
|
|
|
|
<AgGridColumn field="make"></AgGridColumn>
|
|
|
|
<AgGridColumn field="model"></AgGridColumn>
|
|
|
|
<AgGridColumn field="price"></AgGridColumn>
|
|
|
|
</AgGrid>
|
2022-02-11 13:56:28 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2022-02-23 17:57:44 +00:00
|
|
|
|
|
|
|
export default Index;
|