Skip to content

Commit

Permalink
book page with new cards
Browse files Browse the repository at this point in the history
  • Loading branch information
soker90 committed May 9, 2024
1 parent 6491c3f commit f304d72
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/Card.jsx
Expand Up @@ -4,7 +4,7 @@ import { forwardRef } from 'react'
const Card = forwardRef(({ className, ...props }, ref) => (
<div
ref={ref}
className={cn('rounded-lg border bg-card text-card-foreground shadow-sm', className)}
className={cn('rounded-lg border bg-card text-card-foreground shadow-sm pb-1.5', className)}
{...props}
/>
))
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Book/components/InvoicesTable/InvoicesTable.jsx
Expand Up @@ -14,7 +14,7 @@ const InvoicesTable = ({ invoices, count, setFilters }) => {

return (
<TableMaterial
className={classes.table}
className='mt-4'
columns={[
{
title: 'Nº de Orden',
Expand Down
@@ -1,9 +1,6 @@
import makeStyles from '@mui/styles/makeStyles'

export const useStyles = makeStyles(theme => ({
table: {
marginTop: theme.spacing(2)
},
rowRed: {
'& > *': {
color: theme.palette.error.dark
Expand Down
12 changes: 2 additions & 10 deletions src/pages/Book/components/SearchForm/SearchForm.jsx
Expand Up @@ -2,27 +2,19 @@

import PropTypes from 'prop-types'
import {
Card,
CardContent,
Grid,
Divider,
CardHeader
} from '@mui/material'

import {
DatePickerForm,
InputForm, SwitchForm
} from 'components'
import { DatePickerForm, InputForm, SwitchForm, Card, CardContent } from 'components'

import { useStyles } from './SearchForm.styles'
import { fields } from '../../constans'

const SearchForm = ({
filters,
setFilters
}) => {
const classes = useStyles()

/**
* Handle event onChange input
* @param {String} name
Expand Down Expand Up @@ -75,7 +67,7 @@ const SearchForm = ({
)

return (
<Card className={classes.root}>
<Card className='mt-4'>
<CardHeader
title='Búsqueda'
/>
Expand Down
7 changes: 0 additions & 7 deletions src/pages/Book/components/SearchForm/SearchForm.styles.js

This file was deleted.

@@ -1,16 +1,13 @@
import { useCallback, useState } from 'react'
import PropTypes from 'prop-types'
import {
Card,
CardContent,
CardHeader,
Divider,
IconButton,
Tooltip
} from '@mui/material'
import EditIcon from '@mui/icons-material/Edit'

import { ItemGroupsCard } from 'components'
import { ItemGroupsCard, Card, CardContent, CardHeader } from 'components'
import { adapterClientInfo } from '../../utils'
import { EditClientModal } from '../../modals'
import { useStyles } from './ClientExpandedInfo.styles'
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Product/components/ProductData/ProductData.jsx
@@ -1,11 +1,13 @@
import { useCallback, useState } from 'react'
import PropTypes from 'prop-types'
import {
Card, CardContent, CardHeader, Divider, Grid, IconButton, Tooltip
Divider, Grid, IconButton, Tooltip
} from '@mui/material'
import EditIcon from '@mui/icons-material/Edit'
import uniqId from 'uniqid'

import { Card, CardContent, CardHeader } from 'components'

import ProductItemCard from './ProductItemCard'
import { generateLabels } from './utils'
import EditProductModal from '../../modals/EditProductModal'
Expand Down

0 comments on commit f304d72

Please sign in to comment.