(undefined);
const [resend, setResend] = useState(false);
+ const history = useHistory();
const onChange = (name: string, value: string) => {
setSignUpFiels({ ...signUpFields, [name]: value });
@@ -83,6 +85,12 @@ function SignUp({ sendOtp, sendPhoneNumber }: any) {
}
}, [level]);
+ useEffect(() => {
+ if(loginFlag){
+ history.push('/');
+ }
+ },[loginFlag]);
+
return (
@@ -171,7 +179,9 @@ function SignUp({ sendOtp, sendPhoneNumber }: any) {
);
}
-export default connect(() => ({}), {
+export default connect((state : any) => ({
+ loginFlag : state.user.setLogin,
+}), {
sendOtp: user.otp_login,
sendPhoneNumber: user.otp,
})(SignUp);
diff --git a/src/views/Home/Courses/index.tsx b/src/views/Home/Courses/index.tsx
index 319ba14..6134ce6 100644
--- a/src/views/Home/Courses/index.tsx
+++ b/src/views/Home/Courses/index.tsx
@@ -11,7 +11,7 @@ function Courses({number, courses, selectedSort} : any) {
if (window.innerWidth >= 1440) {
return 5;
} else if (window.innerWidth >= 1008 && window.innerWidth < 1440) {
- return 5;
+ return 4;
} else if (window.innerWidth > 640 && window.innerWidth < 1008) {
return 3;
} else {
diff --git a/src/views/Subscription/DiscountCode/index.scss b/src/views/Subscription/DiscountCode/index.scss
index 4c833b3..658cf0b 100644
--- a/src/views/Subscription/DiscountCode/index.scss
+++ b/src/views/Subscription/DiscountCode/index.scss
@@ -16,8 +16,8 @@
}
input{
background-color : rgba(255, 255, 255, 0.06);
- border-top-right-radius: 10px;
- border-bottom-right-radius: 10px;
+ border-top-right-radius: 6px;
+ border-bottom-right-radius: 6px;
border: 0px;
color: #aaa;
&::placeholder{
@@ -26,9 +26,9 @@
}
button{
background-color : #81C342;
- border-top-left-radius: 10px;
+ border-top-left-radius: 6px;
color: white;
- border-bottom-left-radius: 10px;
+ border-bottom-left-radius: 6px;
border: none;
}
}
diff --git a/src/views/Subscription/SubscribeRadio/index.scss b/src/views/Subscription/SubscribeRadio/index.scss
index 47afe6b..ef0735c 100644
--- a/src/views/Subscription/SubscribeRadio/index.scss
+++ b/src/views/Subscription/SubscribeRadio/index.scss
@@ -4,6 +4,7 @@
margin-bottom: 15px;
border-radius: 10px;
cursor: pointer;
+ transition: all 0.5s;
&__name{
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
@@ -16,7 +17,6 @@
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
background-color: rgba(255, 255, 255, 0.18);
- padding : 10px 20px 10px 0px;
strong, b{
color: white;
@@ -78,7 +78,6 @@
}
&__factor{
flex: 3;
- padding-right: 65px;
&--tag{
font-size: 11px;
}
@@ -114,7 +113,6 @@
}
&__factor{
flex: 3;
- padding-right: 70px;
&--tag{
font-size: calc(100vw / 130);
}
diff --git a/src/views/Subscription/SubscribeRadio/index.tsx b/src/views/Subscription/SubscribeRadio/index.tsx
index 78b74f0..05a7f5c 100644
--- a/src/views/Subscription/SubscribeRadio/index.tsx
+++ b/src/views/Subscription/SubscribeRadio/index.tsx
@@ -36,7 +36,7 @@ function SubscribeRadio({ data, selectedVOD, selectVOD }: any) {
/>
{data.name}
-
+
{/* {data.offPercent !== 0 && ( */}
diff --git a/src/views/Subscription/index.scss b/src/views/Subscription/index.scss
index b45eafa..7bfc537 100644
--- a/src/views/Subscription/index.scss
+++ b/src/views/Subscription/index.scss
@@ -19,7 +19,7 @@
font-size: 24px;
}
p{
- font-size: 16px;
+ font-size: 14px;
}
}
}