-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added images for both users and dogs (need to add and edit dogs)
Showing
7 changed files
with
86 additions
and
82 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,45 @@ | ||
import React from 'react'; | ||
import react, { useContext } from 'react' | ||
import {Form, Input, Button} from 'antd' | ||
import { Redirect } from 'react-router-dom' | ||
import {status,json} from '../utilities/requestHandlers' | ||
import UserContext from '../contexts/user' | ||
const { TextArea } = Input | ||
// Form formating : | ||
const formItemLayout = { | ||
labelCol: { xs: { span: 24 }, sm: { span: 6 } }, | ||
wrapperCol: { xs: { span: 24 }, sm: { span: 12 } } | ||
} | ||
const tailFormItemLayout = { | ||
wrapperCol: { xs: { span: 24, offset: 0 }, sm: { span: 16, offset: 6 } }, | ||
} | ||
|
||
function _onFinish(values) { | ||
const {msg}=values | ||
console.log(`Recieved values ${values}`) | ||
} | ||
/** | ||
* Contact form regarding specifique a lisiting | ||
*/ | ||
function Messages(props) { | ||
return ( | ||
<> | ||
<p>This is where the messages page is displayed</p> | ||
</> | ||
); | ||
const context = useContext(UserContext) | ||
console.log(context) | ||
const _form =( | ||
<Form{...formItemLayout}> | ||
|
||
<Form.Item name="message" label="Message"> | ||
<TextArea showCount={true} maxLength={500} placeholder={`Enter you message...`}/> | ||
</Form.Item> | ||
<Form.Item {...tailFormItemLayout}> | ||
<Button htmlType="submit" type="primary">Contact</Button> | ||
{/* {buttons} */} | ||
</Form.Item> | ||
</Form> | ||
) | ||
return( | ||
<Form {...formItemLayout} onFinish={_onFinish}> | ||
{_form} | ||
</Form> | ||
) | ||
} | ||
|
||
export default Messages; |
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