Skip to content

Commit

Permalink
[#95]Chore: apply markAccount lib
Browse files Browse the repository at this point in the history
  • Loading branch information
gilyeon00 committed May 30, 2023
1 parent c390904 commit 32c6659
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 29 deletions.
6 changes: 3 additions & 3 deletions src/components/MissionBanner/missionBanner.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
border-radius: 20px;
box-sizing: border-box;
padding: 1.5rem;
font-weight: 700;
font-weight: 600;
font-size: 1.5rem;
}

Expand All @@ -46,7 +46,7 @@
border-radius: 20px;
box-sizing: border-box;
padding: 1.5rem;
font-weight: 700;
font-weight: 600;
font-size: 1.5rem;
}

Expand All @@ -60,6 +60,6 @@
border-radius: 20px;
box-sizing: border-box;
padding: 1.5rem;
font-weight: 700;
font-weight: 600;
font-size: 1.5rem;
}
12 changes: 6 additions & 6 deletions src/components/debitBanner/debitBanner.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
.seldiv{
display: flex;
align-items: center;
justify-content: space-between;
justify-content: space-around;
width: 210px;
padding-right: 1rem;
}
Expand All @@ -31,9 +31,9 @@
height: 75%;
border-radius: 20px;
box-sizing: border-box;
padding: 1.5rem;
font-weight: 700;
font-size: 1.5rem;
margin: 1.5rem;
font-weight: 600;
font-size: 1.3rem;
}

.kidBalance{
Expand All @@ -46,7 +46,7 @@
border-radius: 20px;
box-sizing: border-box;
padding: 1.5rem;
font-weight: 700;
font-weight: 600;
font-size: 1.5rem;
}

Expand All @@ -60,7 +60,7 @@
border-radius: 20px;
box-sizing: border-box;
padding: 1.5rem;
font-weight: 700;
font-weight: 600;
font-size: 1.5rem;
}

Expand Down
7 changes: 4 additions & 3 deletions src/components/debitForm/DebitForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ import { useNavigate } from 'react-router';
import axios from 'axios';
import Loading from '../../lib/Loading';
import { markThousand } from '../../lib/markThousand';
import { markAccount } from '../../lib/markAccount';

const DebitForm = ({kidUserId, kidUserName}) => {
const [price, setPrice] = useState("");
const [dealMsg, setDealMsg] = useState("");
const navigate = useNavigate();
const userId = sessionStorage.getItem("userId");
const [userBalance, setUserBalance] = useState("");
const [kidAccount, setKidAccount] = useState();
const [kidAccount, setKidAccount] = useState("");
const [kidBalance, setKidBalance] = useState();
const [isLoading, setIsLoading] = useState(true);

Expand Down Expand Up @@ -42,7 +43,7 @@ const DebitForm = ({kidUserId, kidUserName}) => {
.then((response) => {
console.log(response.data.data)
setKidBalance(response.data.data.balance)
setKidAccount(response.data.data.account)
setKidAccount(markAccount(response.data.data.account))
})
.catch((error) => {
console.log(error.response.data);
Expand Down Expand Up @@ -77,7 +78,7 @@ const DebitForm = ({kidUserId, kidUserName}) => {
.then((response) => {
console.log(response.data.data)
setKidBalance(response.data.data.balance)
setKidAccount(response.data.data.account)
setKidAccount(markAccount(response.data.data.account))
})
.catch((error) => {
console.log(error.response.data);
Expand Down
12 changes: 6 additions & 6 deletions src/components/debitForm/debitForm.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
width: 80%;
height: 80%;
border-radius: 30px;
font-weight: 600;
font-weight: 300;
}

.fstbox{
Expand All @@ -41,7 +41,7 @@
border-bottom: 2px solid #CCC;
margin-left: 3rem;
margin-right: 3rem;
font-weight: 600;
font-weight: 300;
font-size: 20px;
}

Expand All @@ -57,15 +57,15 @@
}

.sendbtnin{
border: 3px solid #2D86E0;
border: 3px solid rgb(229,249,251);
background-color: #FCFF5C;
border-radius: 30px;display: flex;
align-items: center;
justify-content: center;
width: 20%;
height: 100%;
color: #000;
font-weight: 600;
font-weight: 500;
font-size: 24px;
cursor: pointer;
}
Expand All @@ -75,11 +75,11 @@
border: none;
border-bottom: 3px solid #000;
font-size: 26px;
font-weight: 700;
font-weight: 300;
}

.dbtmsgbox{
font-size: 26px;
font-weight: 700;
font-weight: 300;
display: flex;
}
2 changes: 1 addition & 1 deletion src/components/debitHistory/DebitHistory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const DebitHistory = ({ kidUserId, kidUserName }) => {
}
setIsLoading(false);
} catch (error) {
console.log(error.response.data);
// console.log(error.response.data);
setIsLoading(false);
}
};
Expand Down
8 changes: 4 additions & 4 deletions src/components/directDebitForm/directDebitForm.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
width: 80%;
height: 80%;
border-radius: 30px;
font-weight: 600;
font-weight: 300;
}

.dditbox{
Expand All @@ -31,7 +31,7 @@

.ddittext, .ddtitle{
font-size: 24px;
font-weight: 600;
font-weight: 400;

}

Expand All @@ -49,7 +49,7 @@
border-bottom: 2px solid #CCC;

margin-right: 3rem;
font-weight: 600;
font-weight: 300;
font-size: 20px;
}

Expand All @@ -68,7 +68,7 @@
border: none;
border-bottom: 2px solid #CCC;
font-size: 24px;
font-weight: 600;
font-weight: 300;
}

.dbmsgbox{
Expand Down
4 changes: 2 additions & 2 deletions src/components/payBanner/payBanner.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
border-radius: 20px;
box-sizing: border-box;
padding: 1.5rem;
font-weight: 700;
font-weight: 600;
font-size: 1.5rem;
}

Expand All @@ -33,6 +33,6 @@
border-radius: 20px;
box-sizing: border-box;
padding: 1.5rem;
font-weight: 700;
font-weight: 600;
font-size: 1.5rem;
}
2 changes: 1 addition & 1 deletion src/components/profile/FamCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ import Loading from '../../lib/Loading';
<img src={`${imgSrc}`} alt='' className='fam-profile' />
<div className='fam-info-box'>
<p id='fam-name'>{userName}</p>
<p>계좌번호 : {userAccount}</p>
<p>계좌번호 : {markAccount(userAccount)}</p>
{(!isParent) &&
<p>현재단계 : {checkLevel(userAchieve)}</p>
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile/MyBigCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const MyBigCard = ({ isParent }) => {
<p id="my-balance">잔액 : {userBalance}</p>
</>
)}
<p id="my-account">계좌번호 : {userAccount}</p>
<p id="my-account">계좌번호 : {markAccount(userAccount)}</p>
<p>가족코드 : {famCode}</p>
</div>
<div className="my-edit-box">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

.loginSlogan{
text-align: center;
margin : 5rem;
margin : 5rem 2rem;
color: #fff;
font-weight: 500;
font-size: 4rem;
Expand All @@ -52,7 +52,7 @@
.loginInput{
position: absolute;
right: 12vw;
top: 6rem;
top: 5rem;
width: 30vw;
height: 80%;
background: #FFFFFF;
Expand Down

0 comments on commit 32c6659

Please sign in to comment.