Skip to content

Commit

Permalink
refactor: 🐛 restore the image size to 600kb (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoMSousa authored Aug 31, 2022
1 parent e612d7b commit fdee08b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/product/CreateYourProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function CreateYourProfile() {
<SectionTitle tag="h2">Create your Profile</SectionTitle>
<FormField
title="Logo / profile picture"
subTitle="Upload a profile image with a max. size of 10MB"
subTitle="Upload a profile image with a max. size of 600Kb"
required
>
<Upload name="createYourProfile.logo" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/product/ProductImages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default function ProductImages() {
<SectionTitle tag="h2">Product Images</SectionTitle>
<FormField
title="Upload your product images"
subTitle="You can disable images for variants that shouldn't be shown. Use a max. size of 10MB per image"
subTitle="You can disable images for variants that shouldn't be shown. Use a max. size of 600Kb per image"
style={{
marginBottom: 0
}}
Expand Down
4 changes: 2 additions & 2 deletions src/components/product/utils/const.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { CONFIG } from "../../../lib/config";
import countries from "../../../lib/const/countries.json";

export const MAX_LOGO_SIZE = 10 * 1024 * 1024;
export const MAX_IMAGE_SIZE = 10 * 1024 * 1024;
export const MAX_LOGO_SIZE = 600 * 1024;
export const MAX_IMAGE_SIZE = 600 * 1024;
export const SUPPORTED_FILE_FORMATS = [
"image/jpg",
"image/jpeg",
Expand Down

0 comments on commit fdee08b

Please sign in to comment.