Skip to content

Commit 721117d

Browse files
Small changes
- README - package.json - button coloring
1 parent 336f9e4 commit 721117d

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

package.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "react-crud-hooks-users-table",
3-
"version": "0.1.0",
3+
"version": "0.1.3",
44
"private": true,
5-
"homepage": "https://nicholaskylehoffman.github.io/react-hooks-crud/",
5+
"homepage": "https://nicholaskylehoffman.github.io/react-crud-hooks-users-table/",
66
"dependencies": {
77
"bootstrap": "4.6.0",
88
"react": "^16.7",
@@ -13,7 +13,7 @@
1313
},
1414
"scripts": {
1515
"start": "react-scripts start",
16-
"predeploy": "yarn build",
16+
"predeploy": "yarn run build",
1717
"deploy": "gh-pages -d build",
1818
"build": "react-scripts build",
1919
"test": "react-scripts test",
@@ -22,15 +22,10 @@
2222
"eslintConfig": {
2323
"extends": "react-app"
2424
},
25-
"browserslist": [
26-
">0.2%",
27-
"not dead",
28-
"not ie <= 11",
29-
"not op_mini all"
30-
],
25+
"browserslist": [">0.2%", "not dead", "not ie <= 11", "not op_mini all"],
3126
"devDependencies": {
3227
"gh-pages": "^2.0.1"
3328
},
3429
"keywords": [],
3530
"description": ""
36-
}
31+
}

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
work correctly both with client-side routing and a non-root public URL.
2323
Learn how to configure a non-root public URL by running `npm run build`.
2424
-->
25-
<title>React App</title>
25+
<title>CRUD React Hooks App (Users Table)</title>
2626
</head>
2727
<body>
2828
<noscript>You need to enable JavaScript to run this app.</noscript>

src/App.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { useState, Fragment } from "react";
22
import UserTable from "./tables/UserTable";
33
import AddUserForm from "./forms/AddUserForm";
44
import EditUserForm from "./forms/EditUsersForm";
5-
import Button from "react-bootstrap/Button";
65

76
const App = () => {
87
const usersData = [
@@ -51,12 +50,12 @@ const App = () => {
5150

5251
return (
5352
<div className="container">
54-
<h1>CRUD React App with Hooks - No Classes</h1>
53+
<h1>React CRUD App w/Hooks</h1>
5554
<div className="flex-row">
5655
<div className="flex-large">
5756
{editing ? (
5857
<Fragment>
59-
<h2>Edit user</h2>
58+
<h2>Edit User</h2>
6059
<EditUserForm
6160
editing={editing}
6261
setEditing={setEditing}
@@ -66,13 +65,13 @@ const App = () => {
6665
</Fragment>
6766
) : (
6867
<Fragment>
69-
<h2>Add user</h2>
68+
<h2>Add User</h2>
7069
<AddUserForm addUser={addUser} />
7170
</Fragment>
7271
)}
7372
</div>
7473
<div className="flex-large">
75-
<h2>View users</h2>
74+
<h2>View Users</h2>
7675
<UserTable users={users} editRow={editRow} deleteUser={deleteUser} />
7776
</div>
7877
</div>

src/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ import ReactDOM from "react-dom";
33
import "./index.css";
44
import App from "./App";
55
import "bootstrap/dist/css/bootstrap.css";
6-
import Button from "react-bootstrap/Button";
76

87
ReactDOM.render(<App />, document.getElementById("root"));

0 commit comments

Comments
 (0)