fix component

- buttom radius valuenya constans
- perbaikan bottom pada auth file
This commit is contained in:
2025-07-03 17:05:53 +08:00
parent 7b58e3315f
commit f5cf9e1549
6 changed files with 57 additions and 46 deletions

View File

@@ -23,8 +23,13 @@ export default function LoginView() {
function handleLogin() {
const callingCode = selectedCountry?.callingCode.replace(/^\+/, "") || "";
const fixNumber = callingCode + inputValue;
console.log(fixNumber);
const id = fixNumber.replace(/\D/g, "");
// console.log("fixNumber", fixNumber);
// router.navigate("/verification");
const randomAlfabet = Math.random().toString(36).substring(2, 8);
const randomNumber = Math.floor(Math.random() * 1000000);
const id = randomAlfabet + randomNumber + fixNumber;
console.log("user id :", id);
router.navigate(`/(application)/profile/${id}`);
// router.navigate("/(application)/home");
@@ -67,13 +72,7 @@ export default function LoginView() {
<Spacing height={20} />
<ButtonCustom
title="Login"
backgroundColor={MainColor.yellow}
textColor={MainColor.black}
radius={10}
onPress={handleLogin}
/>
<ButtonCustom onPress={handleLogin}>Login</ButtonCustom>
</View>
</ViewWrapper>
);