File tree Expand file tree Collapse file tree 3 files changed +6
-16
lines changed Expand file tree Collapse file tree 3 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React, { useState } from 'react'
2
2
import { Prompt } from 'react-router-dom'
3
3
import Card from '../../ui/Card'
4
4
5
- const AddUser = ( ) => {
5
+ const AddProject = ( ) => {
6
6
const [ formIsDirty , setFormIsDirty ] = useState ( false )
7
7
8
8
function handleSubmit ( e ) {
@@ -14,14 +14,13 @@ const AddUser = () => {
14
14
< Card style = { { minHeight : '20em' } } >
15
15
< Prompt when = { formIsDirty } message = "Are you sure you want to leave this form before saving?" />
16
16
< form className = "spacing" onSubmit = { handleSubmit } >
17
- < input onChange = { ( ) => setFormIsDirty ( true ) } type = "text" placeholder = "Email" required />
18
- < input onChange = { ( ) => setFormIsDirty ( true ) } type = "password" placeholder = "Password" required />
17
+ < input onChange = { ( ) => setFormIsDirty ( true ) } type = "text" placeholder = "Project Name" required />
19
18
< button type = "submit" className = "button" >
20
- Add User
19
+ Add Project
21
20
</ button >
22
21
</ form >
23
22
</ Card >
24
23
)
25
24
}
26
25
27
- export default AddUser
26
+ export default AddProject
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import Panel from '../../ui/Panel'
4
4
import PageHeader from '../../ui/PageHeader'
5
5
import { PageHeaderTabs , Tab } from '../../ui/PageHeaderTabs'
6
6
import Users from './Users'
7
- import AddUser from './AddUser'
8
7
import SigninMethods from './SigninMethods'
9
8
import Templates from './Templates'
10
9
@@ -20,7 +19,6 @@ const AuthenticationLayout = ({ match }) => {
20
19
</ PageHeader >
21
20
< Panel >
22
21
< Switch >
23
- < Route path = { `${ match . path } /users/add-user` } component = { AddUser } />
24
22
< Route path = { `${ match . path } /users` } component = { Users } />
25
23
< Route path = { `${ match . path } /signin-method` } component = { SigninMethods } />
26
24
< Route path = { `${ match . path } /templates` } component = { Templates } />
Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
- import { Link } from 'react-router-dom'
3
2
import Card from '../../ui/Card'
4
3
5
- const Users = ( { match } ) => {
6
- return (
7
- < Card style = { { height : '20em' } } >
8
- < Link to = { `${ match . url } /add-user` } className = "button" >
9
- Add User
10
- </ Link >
11
- </ Card >
12
- )
4
+ const Users = ( ) => {
5
+ return < Card style = { { height : '20em' } } > Useres</ Card >
13
6
}
14
7
15
8
export default Users
You can’t perform that action at this time.
0 commit comments