2018-06-07 13:16:52 +02:00

27 lines
473 B
JavaScript

import React from 'react'
import { connect } from 'react-redux'
import ActivityAddOrEdit from './ActivityAddOrEdit'
function ActivityAdd (props) {
const { message, sports } = props
return (
<div>
<ActivityAddOrEdit
activity={null}
message={message}
sports={sports}
/>
</div>
)
}
export default connect(
state => ({
message: state.message,
sports: state.sports.data,
user: state.user,
}),
)(ActivityAdd)