Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CRIO_BYTES
ME_NODEJS_MONGODB
Commits
26df7c8c
Commit
26df7c8c
authored
4 years ago
by
Aman Kumar Kesu
Browse files
Options
Download
Email Patches
Plain Diff
[ Code Refactored]
parent
760ec836
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
17 deletions
+3
-17
Frontend/src/App.js
Frontend/src/App.js
+1
-5
Frontend/src/components/Header.js
Frontend/src/components/Header.js
+1
-2
Frontend/src/components/Home.js
Frontend/src/components/Home.js
+0
-4
Frontend/src/components/SearchForm.js
Frontend/src/components/SearchForm.js
+0
-1
Frontend/src/components/SubmitForm.js
Frontend/src/components/SubmitForm.js
+0
-2
Frontend/src/components/Todo.js
Frontend/src/components/Todo.js
+1
-2
Frontend/src/index.js
Frontend/src/index.js
+0
-1
No files found.
Frontend/src/App.js
View file @
26df7c8c
...
...
@@ -5,12 +5,8 @@ import "react-datepicker/dist/react-datepicker.css";
import
'
./App.css
'
;
import
axios
from
'
axios
'
;
// import SubmitForm from './components/SubmitForm';
import
SearchForm
from
'
./components/SearchForm
'
;
// import TodoList from './components/TodoList';
import
Home
from
'
./components/Home
'
;
// import Todo from './components/Todo';
// import Header from './components/Header';
class
App
extends
React
.
Component
{
state
=
{
tasks
:
[]
...
...
@@ -46,7 +42,7 @@ class App extends React.Component {
break
;
}
}
if
(
pos
===
-
1
)
return
;
newArr
[
pos
].
name
=
task
.
name
;
newArr
[
pos
].
startDate
=
task
.
startDate
;
...
...
This diff is collapsed.
Click to expand it.
Frontend/src/components/Header.js
View file @
26df7c8c
import
React
from
'
react
'
;
// import ReactDOM from 'react-dom';
// import App from '../App';
const
Header
=
(
props
)
=>
{
return
(
<
div
className
=
'
card-header
'
>
...
...
This diff is collapsed.
Click to expand it.
Frontend/src/components/Home.js
View file @
26df7c8c
import
React
from
'
react
'
;
// import ReactDOM from 'react-dom';
import
{
Button
}
from
'
antd
'
;
import
{
Link
,
withRouter
}
from
'
react-router-dom
'
;
import
"
react-datepicker/dist/react-datepicker.css
"
;
import
axios
from
'
axios
'
;
import
SubmitForm
from
'
./SubmitForm
'
;
// import SearchForm from './SearchForm';
import
TodoList
from
'
./TodoList
'
;
// import Todo from './Todo';
// import TodoApp from './Todo';
import
Header
from
'
./Header
'
;
class
Home
extends
React
.
Component
{
state
=
{
...
...
This diff is collapsed.
Click to expand it.
Frontend/src/components/SearchForm.js
View file @
26df7c8c
...
...
@@ -4,7 +4,6 @@ import axios from 'axios';
import
{
Link
,
withRouter
}
from
'
react-router-dom
'
;
import
TodoList
from
'
./TodoList
'
;
// import App from '../App';
class
SearchForm
extends
Component
{
state
=
{
...
...
This diff is collapsed.
Click to expand it.
Frontend/src/components/SubmitForm.js
View file @
26df7c8c
import
React
from
'
react
'
;
// import ReactDOM from 'react-dom';
// import App from '../App';
class
SubmitForm
extends
React
.
Component
{
state
=
{
name
:
''
,
...
...
This diff is collapsed.
Click to expand it.
Frontend/src/components/Todo.js
View file @
26df7c8c
import
React
,
{
Component
}
from
'
react
'
;
// import ReactDOM from 'react-dom';
// import App from '../App';
class
Todo
extends
Component
{
constructor
(
props
)
{
super
(
props
);
...
...
This diff is collapsed.
Click to expand it.
Frontend/src/index.js
View file @
26df7c8c
...
...
@@ -4,7 +4,6 @@ import './index.css';
import
App
from
'
./App
'
;
import
reportWebVitals
from
'
./reportWebVitals
'
;
import
{
BrowserRouter
}
from
"
react-router-dom
"
;
// var destination = document.querySelector("#container");
ReactDOM
.
render
(
<
React
.
StrictMode
>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment