Skip to content

Commit

Permalink
upd: refactorizando el codigo para la peticion a la api de github
Browse files Browse the repository at this point in the history
  • Loading branch information
JosafatJimenezB committed Mar 16, 2023
1 parent 6ddee19 commit d8a37cd
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 94 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public/env.js

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
Expand Down
95 changes: 70 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.1.3",
"dotenv": "^16.0.3",
"email-validator": "^2.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-dotenv": "^0.1.3",
"react-scripts": "5.0.1",
"sweetalert2": "^11.7.3",
"web-vitals": "^2.1.4"
},
"scripts": {
Expand Down Expand Up @@ -38,6 +41,8 @@
]
},
"react-dotenv": {
"whitelist": ["API_URL"]
"whitelist": [
"API_URL"
]
}
}
6 changes: 4 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from 'react';
import './App.css';
import Card from './components/Card';

function App() {
const App = () => {

return (
<div className="App">
<Card />
<Card orgName={process.env.REACT_APP_ORGNAME} token={process.env.REACT_APP_TOKEN}/>
</div>
);
}
Expand Down
Loading

0 comments on commit d8a37cd

Please sign in to comment.