|
|
@@ -4,7 +4,7 @@ import lo from '../../../images/lo.png'
|
|
|
import './index.css'
|
|
|
import {graphqlUrl} from "../../../config";
|
|
|
import {SHOW_CASE} from "../../../gql";
|
|
|
-
|
|
|
+import {FormattedMessage} from 'react-intl';
|
|
|
import {request} from 'graphql-request'
|
|
|
|
|
|
const {Content} = Layout;
|
|
|
@@ -44,13 +44,15 @@ class ExampleShow extends Component {
|
|
|
<div id="example-show">
|
|
|
<Layout style={{padding: '24px', minHeight: '300px'}}>
|
|
|
<Content className="content">
|
|
|
-
|
|
|
- {
|
|
|
- this.state.examples.length === 0 ?
|
|
|
- <Spin />
|
|
|
- :
|
|
|
- this.state.examples.map((item, index) => (
|
|
|
- <span key={index} style={{padding: '10px 0'}}>
|
|
|
+ <div>
|
|
|
+ <div className={'schema-name'}><FormattedMessage id='scan and use'/></div>
|
|
|
+ <div className="caseAllShow">
|
|
|
+ {
|
|
|
+ this.state.examples.length === 0 ?
|
|
|
+ <Spin />
|
|
|
+ :
|
|
|
+ this.state.examples.map((item, index) => (
|
|
|
+ <span key={index} style={{padding: '10px 0'}}>
|
|
|
<Card
|
|
|
key={index}
|
|
|
style={{width: 300}}
|
|
|
@@ -79,8 +81,10 @@ class ExampleShow extends Component {
|
|
|
/>
|
|
|
</Card>
|
|
|
</span>
|
|
|
- ))
|
|
|
- }
|
|
|
+ ))
|
|
|
+ }
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</Content>
|
|
|
</Layout>
|
|
|
</div>
|