prototype 1.0
This commit is contained in:
19
src/resources/subscriptions/SubscriptionList.tsx
Normal file
19
src/resources/subscriptions/SubscriptionList.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import React from 'react';
|
||||
import { List, Datagrid, TextField, DateField, EditButton, SelectInput } from 'react-admin';
|
||||
|
||||
export const SubscriptionList = () => (
|
||||
<List filters={[<SelectInput source="status" choices={[
|
||||
{ id: 'active', name: 'Active' },
|
||||
{ id: 'expired', name: 'Expired' },
|
||||
{ id: 'cancelled', name: 'Cancelled' },
|
||||
]} alwaysOn />]}>
|
||||
<Datagrid rowClick="edit">
|
||||
<TextField source="user_id" />
|
||||
<TextField source="plan" />
|
||||
<TextField source="status" />
|
||||
<DateField source="started_at" />
|
||||
<DateField source="expires_at" />
|
||||
<EditButton />
|
||||
</Datagrid>
|
||||
</List>
|
||||
);
|
||||
Reference in New Issue
Block a user