chore: move components to a correct folder
This commit is contained in:
		| @@ -1,6 +1,6 @@ | ||||
| import React, { useState, useEffect } from 'react'; | ||||
| import { useState, useEffect } from 'react'; | ||||
| import { Box, Button, TextField, Grid, Avatar, Typography, Paper } from '@mui/material'; | ||||
| import { handleDecimalInputKeyDown } from '../utils/validation'; | ||||
| import { handleDecimalInputKeyDown } from '../../utils/validation'; | ||||
| 
 | ||||
| export default function AddOrEditProductForm({ onAdd, initialData, onCancel }) { | ||||
|   const [product, setProduct] = useState({ | ||||
| @@ -1,16 +1,13 @@ | ||||
| 
 | ||||
| import SectionContainer from '../components/SectionContainer'; | ||||
| import React, { useState } from 'react'; | ||||
| import SectionContainer from '../../components/SectionContainer.jsx'; | ||||
| import { useState } from 'react'; | ||||
| import { DataGrid } from '@mui/x-data-grid'; | ||||
| import { Grid, Card, CardMedia, CardContent, Typography, Button, Dialog, DialogTitle, DialogContent, IconButton, Box, Avatar } from '@mui/material'; | ||||
| import { Typography, Button, Dialog, DialogTitle, DialogContent, IconButton, Box, Avatar } from '@mui/material'; | ||||
| import AddOrEditProductForm from './AddOrEditProductForm.jsx'; | ||||
| import EditIcon from '@mui/icons-material/Edit'; | ||||
| import DeleteIcon from '@mui/icons-material/Delete'; | ||||
| 
 | ||||
| import EditRoundedIcon from '@mui/icons-material/EditRounded'; | ||||
| import DeleteRoundedIcon from '@mui/icons-material/DeleteRounded'; | ||||
| 
 | ||||
| import '../App.css'; | ||||
| import '../../App.css' | ||||
| 
 | ||||
| const columnsBase = [ | ||||
|     { | ||||
| @@ -41,7 +38,7 @@ const columnsBase = [ | ||||
|     { field: 'stock', headerName: 'Stock', width: 120, type: 'number' }, | ||||
| ]; | ||||
| 
 | ||||
| export default function Admin({ children, maxWidth = 'lg', sx = {} }) { | ||||
| export default function Products({ children, maxWidth = 'lg', sx = {} }) { | ||||
|     const [rows, setRows] = useState([ | ||||
|         { id: 1, company: 'Fendi casa', name: 'Product 1', price: 10.99, provider: 'Provider A', stock: 100, category: 'Home', representation: '/1.jpg' }, | ||||
|         { id: 2, company: 'Fendi casa', name: 'Product 2', price: 20.0, provider: 'Provider B', stock: 50, category: 'Home', representation: '/2.jpg' }, | ||||
		Reference in New Issue
	
	Block a user
	 Rodolfo Ruiz
					Rodolfo Ruiz