-
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
10 changed files
with
210 additions
and
10 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
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
File renamed without changes.
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
160 changes: 154 additions & 6 deletions
160
feature/received/src/main/java/com/susu/feature/received/ledgerfilter/LedgerFilterScreen.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
45 changes: 45 additions & 0 deletions
45
feature/received/src/main/java/com/susu/feature/received/ledgerfilter/component/DateText.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.susu.feature.received.ledgerfilter.component | ||
|
||
import androidx.compose.foundation.background | ||
import androidx.compose.foundation.layout.padding | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.draw.clip | ||
import androidx.compose.ui.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.susu.core.designsystem.theme.Gray15 | ||
import com.susu.core.designsystem.theme.Gray40 | ||
import com.susu.core.designsystem.theme.SusuTheme | ||
import com.susu.core.ui.extension.susuClickable | ||
import com.susu.core.ui.util.currentDate | ||
import com.susu.core.ui.util.to_yyyy_dot_MM_dot_dd | ||
|
||
@Composable | ||
fun DateText( | ||
text: String? = null, | ||
onClick: () -> Unit = {}, | ||
) { | ||
Text( | ||
modifier = Modifier | ||
.clip(RoundedCornerShape(4.dp)) | ||
.background(Gray15) | ||
.padding( | ||
horizontal = SusuTheme.spacing.spacing_m, | ||
vertical = SusuTheme.spacing.spacing_xxxxs, | ||
) | ||
.susuClickable(rippleEnabled = false, onClick = onClick), | ||
text = text ?: currentDate.to_yyyy_dot_MM_dot_dd(), | ||
style = SusuTheme.typography.title_xs, | ||
color = Gray40, | ||
) | ||
} | ||
|
||
@Preview | ||
@Composable | ||
fun DateTextPreview() { | ||
SusuTheme { | ||
DateText() | ||
} | ||
} |
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