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:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user