mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
add groups
This commit is contained in:
parent
ab09d3a3e7
commit
a21ff2a3ce
22
client/components/GroupList/GroupList.js
Normal file
22
client/components/GroupList/GroupList.js
Normal file
@ -0,0 +1,22 @@
|
||||
import React, { Component } from 'react'
|
||||
import { Card } from 'antd'
|
||||
import './GroupList.scss'
|
||||
|
||||
export default class GroupList extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<Card title="卡片标题">
|
||||
<div>MFE</div>
|
||||
<div>Hotel</div>
|
||||
<div>Train</div>
|
||||
<div>Flight</div>
|
||||
<div>Pay</div>
|
||||
<div>Vacation</div>
|
||||
</Card>
|
||||
)
|
||||
}
|
||||
}
|
0
client/components/GroupList/GroupList.scss
Normal file
0
client/components/GroupList/GroupList.scss
Normal file
@ -1,5 +1,16 @@
|
||||
import React from 'react'
|
||||
import React, { Component } from 'react'
|
||||
import GroupList from '../../components/GroupList/GroupList.js'
|
||||
|
||||
export default _ => {
|
||||
return <p>fadsfads</p>
|
||||
}
|
||||
export default class ProjectGroups extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
|
||||
render () {
|
||||
return (
|
||||
<div>
|
||||
<GroupList></GroupList>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ export {
|
||||
Home,
|
||||
Login,
|
||||
ProjectGroups
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
import { BrowserRouter as Router, Route, Link, HashRouter } from 'react-router-dom'
|
||||
import { Route, HashRouter, Redirect } from 'react-router-dom'
|
||||
import { Home, Login, ProjectGroups } from './containers/index'
|
||||
|
||||
export default store => {
|
||||
@ -12,4 +12,4 @@ export default store => {
|
||||
</div>
|
||||
</HashRouter>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user