forked from mayteio/ra-aws-amplify
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ removed complex custom gql query for GET_MANY, finalised media exa…
…mples
- Loading branch information
Harley Alexander
committed
Mar 18, 2020
1 parent
ad6b54c
commit 06eb1c7
Showing
17 changed files
with
170 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { Edit, SimpleForm, TextInput } from 'react-admin'; | ||
import { S3Input } from '../../../'; | ||
|
||
export const MediaEdit = () => { | ||
return <div></div>; | ||
export const MediaEdit = props => { | ||
return ( | ||
<Edit {...props}> | ||
<SimpleForm> | ||
<TextInput source="name" /> | ||
<S3Input source="attachment" /> | ||
</SimpleForm> | ||
</Edit> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { | ||
Show, | ||
TextField, | ||
SimpleShowLayout, | ||
DeleteButton, | ||
TopToolbar, | ||
} from 'react-admin'; | ||
import { S3ImageField } from '../../../'; | ||
|
||
export const MediaShow = () => { | ||
return <div></div>; | ||
export const MediaShow = props => { | ||
console.log('running'); | ||
|
||
return ( | ||
<Show | ||
{...props} | ||
actions={ | ||
<TopToolbar> | ||
<DeleteButton /> | ||
</TopToolbar> | ||
} | ||
> | ||
<SimpleShowLayout> | ||
<S3ImageField source="attachment" /> | ||
<TextField source="name" /> | ||
</SimpleShowLayout> | ||
</Show> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.