Skip to content

Commit

Permalink
Remove cards after fixing styles in #2301
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesricky committed Jul 24, 2024
1 parent 6d44a6a commit 60ca358
Showing 1 changed file with 17 additions and 27 deletions.
44 changes: 17 additions & 27 deletions demo/admin/src/products/ProductForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
resolveHasSaveConflict,
useFormSaveConflict,
} from "@comet/cms-admin";
import { Card, CardContent, MenuItem } from "@mui/material";
import { MenuItem } from "@mui/material";
import { GQLProductType } from "@src/graphql.generated";
import {
GQLManufacturerCountriesQuery,
Expand Down Expand Up @@ -319,32 +319,22 @@ export function ProductForm({ id }: FormProps): React.ReactElement {
<Field name="image" isEqual={isEqual}>
{createFinalFormBlock(rootBlocks.image)}
</Field>

{/* TODO: Remove `Card` and `CardContent` once styling-followup is complete (COM-875) */}
<Card sx={{ mb: 4 }}>
<CardContent>
<Field
label={<FormattedMessage id="product.priceList" defaultMessage="Price List" />}
name="priceList"
component={FinalFormFileUpload}
maxFiles={1}
maxFileSize={1024 * 1024 * 4} // 4 MB
fullWidth
/>
</CardContent>
</Card>
<Card>
<CardContent>
<Field
label={<FormattedMessage id="product.datasheets" defaultMessage="Datasheets" />}
name="datasheets"
component={FinalFormFileUpload}
maxFiles={5}
maxFileSize={1024 * 1024 * 4} // 4 MB
fullWidth
/>
</CardContent>
</Card>
<Field
label={<FormattedMessage id="product.priceList" defaultMessage="Price List" />}
name="priceList"
component={FinalFormFileUpload}
maxFiles={1}
maxFileSize={1024 * 1024 * 4} // 4 MB
fullWidth
/>
<Field
label={<FormattedMessage id="product.datasheets" defaultMessage="Datasheets" />}
name="datasheets"
component={FinalFormFileUpload}
maxFiles={5}
maxFileSize={1024 * 1024 * 4} // 4 MB
fullWidth
/>
</MainContent>
</>
)}
Expand Down

0 comments on commit 60ca358

Please sign in to comment.