prototype 1.0
This commit is contained in:
15
src/resources/subscriptions/SubscriptionEdit.tsx
Normal file
15
src/resources/subscriptions/SubscriptionEdit.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import React from 'react';
|
||||
import { Edit, SimpleForm, TextInput, SelectInput } from 'react-admin';
|
||||
|
||||
export const SubscriptionEdit = () => (
|
||||
<Edit>
|
||||
<SimpleForm>
|
||||
<TextInput source="user_id" disabled />
|
||||
<SelectInput source="status" choices={[
|
||||
{ id: 'active', name: 'Active' },
|
||||
{ id: 'expired', name: 'Expired' },
|
||||
{ id: 'cancelled', name: 'Cancelled' },
|
||||
]} />
|
||||
</SimpleForm>
|
||||
</Edit>
|
||||
);
|
||||
Reference in New Issue
Block a user