feat: Add car image description and increase upload file size limit

- Updated locales (en and ru) to increase max file upload size from 5MB to 14MB
- Modified PriceCar component to display image description
- Updated order model and view to support image description
- Added sample image description in stub data
This commit is contained in:
RustamRu
2025-03-08 18:51:36 +03:00
parent 9349a41f84
commit 0679ad92ef
6 changed files with 9 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ import { getFeatures } from '@brojs/cli';
const PRICE_INCREASE_PERCENT_PER_RATING = 10; // 10% за каждый балл
export const PriceCar = ({ image, rating }) => {
export const PriceCar = ({ image, rating, description }) => {
const BASE_WASH_PRICE: number = Number(
getFeatures('dry-wash')['order-cost']?.value || 1000,
);
@@ -41,6 +41,7 @@ export const PriceCar = ({ image, rating }) => {
) : (
<Text>Не удалость определить уровень загрязнения машины</Text>
)}
<Text>{description}</Text>
</Box>
);
};