Skip to content
This repository was archived by the owner on Jul 11, 2026. It is now read-only.

RockyBurger by Edith Ortiz#15

Open
EdithOrt wants to merge 41 commits into
Laboratoria:masterfrom
EdithOrt:master
Open

RockyBurger by Edith Ortiz#15
EdithOrt wants to merge 41 commits into
Laboratoria:masterfrom
EdithOrt:master

Conversation

@EdithOrt

Copy link
Copy Markdown

No description provided.

@reloadercf reloadercf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edith me gusto mucho el código para el desarrollo de tu proyecto, tengo una recomendación:
La consistencia en tu proyecto es importante, como por ejemplo definir bien el nombre de funciones y variables, la consistencia te permitirá navegar mejor en tu código, por lo demás esta muy genial.

Comment thread .gitignore
@@ -0,0 +1,2 @@
node_modules/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esto esta bien, recordando también que puedes tener un gitignore al crear tu proyecto con react

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seria bueno que agregues tu carpeta build al gitignore

Comment thread public/index.html
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cambio por algo personalizado

Comment thread src/App.js
@@ -0,0 +1,22 @@
import React from 'react';
// import { BrowserRouter, Route, Switch } from 'react-router-dom';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

si no se usa borralo

Comment thread src/App.js
Comment on lines +3 to +7
import { Switch, Route, HashRouter } from "react-router-dom";
import Order from './Root/Order';
import Kitchen from './Root/Kitchen';
import Finish from './Root/Finish'
import Navigation from './components/Nav/Navigation'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import { Switch, Route, HashRouter } from "react-router-dom";
import Order from './Root/Order';
import Kitchen from './Root/Kitchen';
import Finish from './Root/Finish'
import Navigation from './components/Nav/Navigation'
import { Switch, Route, HashRouter } from "react-router-dom";
import Order from './Root/Order';
import Kitchen from './Root/Kitchen';
import Finish from './Root/Finish'
import Navigation from './components/Nav/Navigation'

Comment thread src/Root/Finish.js
Comment on lines +1 to +4
import React, { useState, useEffect } from 'react';
import { db } from '../firebase-config';
import ResumeOrder from '../components/resumeOrder/ResumeOrder'
import './finish.css'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import React, { useState, useEffect } from 'react';
import { db } from '../firebase-config';
import ResumeOrder from '../components/resumeOrder/ResumeOrder'
import './finish.css'
import React, { useState, useEffect } from 'react';
import './finish.css'
import { db } from '../firebase-config';
import ResumeOrder from '../components/resumeOrder/ResumeOrder'

Comment thread src/Root/Order.js
Comment on lines +1 to +6
import React, { useState } from 'react';
import Menu from '../components/Menu/Menu'
import products from '../data/products';
import PreviewOrder from '../components/PreviewOrder/PreviewOrder'
import './order.css'
import { Modal, Button, Checkbox } from 'antd';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import React, { useState } from 'react';
import Menu from '../components/Menu/Menu'
import products from '../data/products';
import PreviewOrder from '../components/PreviewOrder/PreviewOrder'
import './order.css'
import { Modal, Button, Checkbox } from 'antd';
import React, { useState } from 'react';
import { Modal, Button, Checkbox } from 'antd';
import './order.css'
import Menu from '../components/Menu/Menu'
import products from '../data/products';
import PreviewOrder from '../components/PreviewOrder/PreviewOrder'

Comment thread src/Root/Order.js
import PreviewOrder from '../components/PreviewOrder/PreviewOrder'
import './order.css'
import { Modal, Button, Checkbox } from 'antd';

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podrías implementar helpers para react

import logo from '../../assets/logo-rocky.png'
import './StyleNavigation.css'

const Navigation = (props) =>{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

es mejor destructurar

Suggested change
const Navigation = (props) =>{
const Navigation = () =>{

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ history }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const Navigation = (props) =>{
const Navigation = ({ history } ) =>{

justify-content: center
color: white

.Table

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.Table
.table

</div>
</div>
}
{/* PASAR FUNCIÓN QUE CAMBIE EL ESTADO EN FIREBASE */}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

borralo

Suggested change
{/* PASAR FUNCIÓN QUE CAMBIE EL ESTADO EN FIREBASE */}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants