Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kyc): AND-6659 KYC | Update screens to new design #2 (#4061)
- Loading branch information
1 parent
bc7d7b6
commit 1c39c8b
Showing
49 changed files
with
2,190 additions
and
2,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
app/src/main/java/piuk/blockchain/android/ui/kyc/commonui/KycCommonUI.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package piuk.blockchain.android.ui.kyc.commonui | ||
|
||
import androidx.annotation.DrawableRes | ||
import androidx.compose.foundation.layout.ColumnScope | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.unit.dp | ||
import androidx.constraintlayout.compose.ConstraintLayout | ||
import com.blockchain.componentlib.basic.Image | ||
import com.blockchain.componentlib.basic.ImageResource | ||
import com.blockchain.componentlib.theme.AppTheme | ||
import piuk.blockchain.android.R | ||
|
||
@Composable | ||
fun ColumnScope.UserIcon( | ||
modifier: Modifier = Modifier, | ||
@DrawableRes iconRes: Int, | ||
@DrawableRes statusIconRes: Int? = null, | ||
) { | ||
ConstraintLayout(modifier) { | ||
val (userIconRef, statusIconRef) = createRefs() | ||
|
||
Image( | ||
modifier = Modifier.constrainAs(userIconRef) { | ||
top.linkTo(parent.top) | ||
start.linkTo(parent.start) | ||
end.linkTo(parent.end) | ||
}, | ||
imageResource = ImageResource.LocalWithBackground( | ||
id = iconRes, | ||
iconTintColour = R.color.white, | ||
backgroundColour = R.color.blue_600, | ||
alpha = 1f, | ||
size = AppTheme.dimensions.epicSpacing, | ||
iconSize = AppTheme.dimensions.hugeSpacing, | ||
shape = RoundedCornerShape(24.dp), | ||
), | ||
) | ||
|
||
if (statusIconRes != null) { | ||
Image( | ||
modifier = Modifier.constrainAs(statusIconRef) { | ||
top.linkTo(parent.top) | ||
bottom.linkTo(parent.top) | ||
start.linkTo(parent.end) | ||
end.linkTo(parent.end) | ||
}, | ||
imageResource = ImageResource.Local( | ||
id = statusIconRes, | ||
size = AppTheme.dimensions.hugeSpacing, | ||
), | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 0 additions & 51 deletions
51
app/src/main/java/piuk/blockchain/android/ui/kyc/email/entry/EmailVerificationIntent.kt
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
app/src/main/java/piuk/blockchain/android/ui/kyc/email/entry/EmailVerificationInteractor.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.