Skip to content

Commit

Permalink
чекбоксы по дефолту выбраны и цена изменена
Browse files Browse the repository at this point in the history
  • Loading branch information
lev committed Feb 9, 2022
1 parent f85fc31 commit a4acf13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/components/OrderForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const defaultMessageData: MessageDataType = {
plateLength: undefined,
clientName: undefined,
clientContact: undefined,
montagePlate: false,
dismantlingOldPlate: false,
montagePlate: true,
dismantlingOldPlate: true,
platePrice: 0
};

Expand Down Expand Up @@ -86,6 +86,7 @@ function Checkboxes({checkboxes, setCheckbox}) {
<label className={'check'} key={i}>
<input
className={`check__input`}
onClick={() => {}}
type="checkbox"
checked={checkbox.checked}
onChange={(e) => {
Expand Down Expand Up @@ -172,7 +173,7 @@ function OrderForm() {
color: "white",
fontSize: "3.8rem",
lineHeight: "1",
margin: "5.125rem 1.25rem 0rem 1.25rem",
margin: "5.125rem 1.25rem 0rem 0rem",
}

function FinalPrice() {
Expand All @@ -181,7 +182,7 @@ function OrderForm() {
<p style={{
...finalPriceStyle,
paddingBottom: '2rem'
}}> {/*paddingBottom:'2rem' - костыль для пустого пространства внизу*/}
}}>
<span style={{fontSize: '2.5rem'}}>Общая стоимость</span>
<span style={{fontWeight: 700}}>{
ExportPrice == undefined ? calculateFinalPrice(4990)
Expand All @@ -205,7 +206,7 @@ function OrderForm() {
fontSize: "2rem",
fontWeight: 300,
color: "white",
margin: "0rem 1.25rem 4rem 1.5rem",
margin: "0rem 1.25rem 4rem 0rem",
paddingBottom: '2.5rem', //костыль, чтобы появилось пустое пространство
}}>
зависит от сложности работ
Expand Down
2 changes: 1 addition & 1 deletion src/styles/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@

.form_wrapper {
margin: 2rem;
background-color: #2a2b3c;
background-color: #246;
border-radius: 8px;
}

Expand Down

1 comment on commit a4acf13

@ekbdev
Copy link
Contributor

@ekbdev ekbdev commented on a4acf13 Feb 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for eplates ready!

✅ Preview
https://eplates-i0jdcqprp-ekbdev.vercel.app
https://eplates-task-11-softChanges.vercel.app

Built with commit a4acf13.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.