my profile delete bonuses fields

dilmurod
Dilmurod 2 weeks ago
parent e69933102f
commit 2b8ab9c238

@ -20,11 +20,11 @@ const ChangePassword = () => {
initialValues={{ modifier: "public" }} initialValues={{ modifier: "public" }}
> >
<FormAnt.Item <FormAnt.Item
label="Old Password" label="Previous Password"
name="old_password" name="old_password"
rules={[{ required: true, message: "Your old password!" }]} rules={[{ required: true, message: "Your previous password!" }]}
> >
<Input.Password /> <Input.Password placeholder="Enter your previous password" />
</FormAnt.Item> </FormAnt.Item>
<FormAnt.Item <FormAnt.Item
name="new_password" name="new_password"
@ -32,7 +32,7 @@ const ChangePassword = () => {
rules={[ rules={[
{ {
required: true, required: true,
message: "Please input your password!", message: "Please enter your password!",
}, },
{ {
min: 8, min: 8,
@ -41,7 +41,7 @@ const ChangePassword = () => {
]} ]}
hasFeedback hasFeedback
> >
<Input.Password /> <Input.Password placeholder="Please enter your new password" />
</FormAnt.Item> </FormAnt.Item>
<FormAnt.Item <FormAnt.Item
name="password_confirm" name="password_confirm"
@ -65,7 +65,7 @@ const ChangePassword = () => {
}), }),
]} ]}
> >
<Input.Password /> <Input.Password placeholder="Please confirm your new password" />
</FormAnt.Item> </FormAnt.Item>
</FormAnt> </FormAnt>
<Button onClick={submit} type="primary"> <Button onClick={submit} type="primary">

@ -75,9 +75,9 @@ const CurrentMonthCard: React.FC<Props> = ({ current }) => {
/> />
<Row gutter={[16, 16]} style={{ marginTop: 12 }}> <Row gutter={[16, 16]} style={{ marginTop: 12 }}>
<Col xs={12} sm={12} md={6} lg={6}> {/* <Col xs={12} sm={12} md={6} lg={6}>
<InfoItem label="Bonuses" value={current.total_bonuses} prefix="+$" /> <InfoItem label="Bonuses" value={current.total_bonuses} prefix="+$" />
</Col> </Col> */}
<Col xs={12} sm={12} md={6} lg={6}> <Col xs={12} sm={12} md={6} lg={6}>
<InfoItem label="Charges" value={current.total_charges} prefix="-$" /> <InfoItem label="Charges" value={current.total_charges} prefix="-$" />

@ -47,11 +47,11 @@ const SalaryHistoryTable: React.FC<Props> = ({ year, salaries }) => {
dataIndex: "total_salary", dataIndex: "total_salary",
render: (_, record) => <span>${record.total_salary}</span>, render: (_, record) => <span>${record.total_salary}</span>,
}, },
{ // {
title: "Total Bonuses", // title: "Total Bonuses",
dataIndex: "total_bonuses", // dataIndex: "total_bonuses",
render: (_, record) => <span>${record.total_bonuses}</span>, // render: (_, record) => <span>${record.total_bonuses}</span>,
}, // },
{ {
title: "Total Charges", title: "Total Charges",
dataIndex: "total_charges", dataIndex: "total_charges",

@ -39,9 +39,9 @@ const TotalStatistics: React.FC<Props> = ({ total }) => {
<Item label="Total salary" value={`$${total.total_earned_salary}`} /> <Item label="Total salary" value={`$${total.total_earned_salary}`} />
</Col> </Col>
<Col xs={12} sm={12} md={8} lg={4}> {/* <Col xs={12} sm={12} md={8} lg={4}>
<Item label="Total bonuses" value={`+$${total.total_bonuses}`} /> <Item label="Total bonuses" value={`+$${total.total_bonuses}`} />
</Col> </Col> */}
<Col xs={12} sm={12} md={8} lg={4}> <Col xs={12} sm={12} md={8} lg={4}>
<Item label="Total charges" value={`-$${total.total_charges}`} /> <Item label="Total charges" value={`-$${total.total_charges}`} />

Loading…
Cancel
Save