-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
147 additions
and
61 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
45 changes: 45 additions & 0 deletions
45
feature/profile/src/main/java/com/wap/wapp/feature/profile/component/WappSurveyHistoryRow.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,45 @@ | ||
package com.wap.wapp.feature.profile.component | ||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.layout.Row | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.material.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.unit.dp | ||
import com.wap.designsystem.WappTheme | ||
import com.wap.wapp.core.designresource.R | ||
|
||
@Composable | ||
internal fun WappSurveyHistoryRow( | ||
modifier: Modifier = Modifier, | ||
) { | ||
Row( | ||
modifier = modifier.padding(horizontal = 10.dp), | ||
) { | ||
Row( | ||
verticalAlignment = Alignment.CenterVertically, | ||
modifier = Modifier.weight(1f), | ||
) { | ||
Text( | ||
text = "프로젝트 세미나", | ||
style = WappTheme.typography.labelRegular, | ||
color = WappTheme.colors.white, | ||
modifier = Modifier.padding(start = 10.dp), | ||
) | ||
} | ||
Text( | ||
text = "09월 04일", | ||
style = WappTheme.typography.labelRegular, | ||
color = WappTheme.colors.white, | ||
) | ||
} | ||
} | ||
|
||
@Composable | ||
private fun WappAttendanceBadge(isAttendance: Boolean = true) { | ||
val drawableId = if (isAttendance) R.drawable.ic_attendance else R.drawable.ic_absent | ||
Image(painter = painterResource(id = drawableId), contentDescription = "") | ||
} |