Skip to content

Commit

Permalink
[MERGE] #188 -> develop
Browse files Browse the repository at this point in the history
[REFACTOR/#188] ์ปดํฌ๋„ŒํŠธ ๋ฌธ์„œํ™” ๋ฐ ์ถ”๊ฐ€ ๋ฆฌํŒฉํ† ๋ง
  • Loading branch information
leeeyubin authored Aug 21, 2024
2 parents 74b7f0f + b1a0127 commit ebc126f
Show file tree
Hide file tree
Showing 35 changed files with 404 additions and 155 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ import com.terning.core.designsystem.component.button.RoundButton
import com.terning.core.designsystem.theme.TerningTheme
import kotlinx.coroutines.launch

/**
* ๋กœ๊ทธ์•„์›ƒ์„ ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐ”ํ…€์‹œํŠธ์ž…๋‹ˆ๋‹ค.
*
* ๋กœ๊ทธ์•„์›ƒ ๋ฒ„ํŠผ๊ณผ, ์ทจ์†Œ ๋ฒ„ํŠผ์œผ๋กœ ์ด๋ฃจ์–ด์ ธ์žˆ์Šต๋‹ˆ๋‹ค.
*
* @param modifier ๋ฐ”ํ…€์‹œํŠธ์— ์ ์šฉํ•  Modifier์ž…๋‹ˆ๋‹ค.
* @param onDismiss ์ทจ์†Œ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ, ๋ฐ”ํ…€์‹œํŠธ๊ฐ€ ๋‹ซํžˆ๋ฉด์„œ ํ˜ธ์ถœ๋˜๋Š” ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param onLogoutClick ๋กœ๊ทธ์•„์›ƒ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ, ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
*/
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun MyPageLogoutBottomSheet(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ import com.terning.core.designsystem.component.button.RoundButton
import com.terning.core.designsystem.theme.TerningTheme
import kotlinx.coroutines.launch

/**
* ํšŒ์›ํƒˆํ‡ด๋ฅผ ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐ”ํ…€์‹œํŠธ์ž…๋‹ˆ๋‹ค.
*
* ํšŒ์›ํƒˆํ‡ด ๋ฒ„ํŠผ๊ณผ, ์ทจ์†Œ ๋ฒ„ํŠผ์œผ๋กœ ์ด๋ฃจ์–ด์ ธ์žˆ์Šต๋‹ˆ๋‹ค.
*
* @param modifier ๋ฐ”ํ…€์‹œํŠธ์— ์ ์šฉํ•  Modifier์ž…๋‹ˆ๋‹ค.
* @param onDismiss ์ทจ์†Œ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ, ๋ฐ”ํ…€์‹œํŠธ๊ฐ€ ๋‹ซํžˆ๋ฉด์„œ ํ˜ธ์ถœ๋˜๋Š” ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param onQuitClick ํšŒ์›ํƒˆํ‡ด ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ, ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
*/
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun MyPageQuitBottomSheet(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ import com.terning.core.designsystem.theme.TerningTheme
import com.terning.core.extension.noRippleClickable
import kotlinx.coroutines.launch

/**
* ํšŒ์›๊ฐ€์ž…์„ ํ•  ๋•Œ ํ”„๋กœํ•„ ์ด๋ฏธ์ง€๋ฅผ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐ”ํ…€์‹œํŠธ์ž…๋‹ˆ๋‹ค.
*
* @param modifier ๋ฐ”ํ…€์‹œํŠธ์— ์ ์šฉํ•  Modifier์ž…๋‹ˆ๋‹ค.
* @param onDismiss ๋ฐ”ํ…€์‹œํŠธ๊ฐ€ ๋‹ซํž ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param onSaveClick ์ €์žฅํ•˜๊ธฐ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ, ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param initialSelectedOption ์ดˆ๊ธฐ์— ์„ ํƒ๋œ ์ด๋ฏธ์ง€๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ์ธ๋ฑ์Šค ๊ฐ’์ž…๋‹ˆ๋‹ค.
*/
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun SignUpBottomSheet(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import androidx.compose.material3.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import com.terning.core.designsystem.theme.White

/**
* ๊ธฐ๋ณธ ๋ฐ”ํ…€์‹œํŠธ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
*
* @param content ๋ฐ”ํ…€์‹œํŠธ์— ํ‘œ์‹œํ•  ๋‚ด์šฉ์„ ๋‹ด์€ Composable ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param onDismissRequest ๋ฐ”ํ…€์‹œํŠธ๊ฐ€ ๋‹ซํžˆ๋Š” ์š”์ฒญ ์‹œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param sheetState ๋ฐ”ํ…€์‹œํŠธ์˜ ์ƒํƒœ๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” SheetState ๊ฐ์ฒด์ž…๋‹ˆ๋‹ค.
*/
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun TerningBasicBottomSheet(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,26 @@ import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.terning.core.R
import com.terning.core.designsystem.theme.Grey400
import com.terning.core.designsystem.theme.TerningPointTheme
import com.terning.core.designsystem.theme.White
import com.terning.core.util.NoRippleTheme

/**
* ์ทจ์†Œ ๊ธฐ๋Šฅ์„ ํ•˜๋Š” ๋ฒ„ํŠผ์ž…๋‹ˆ๋‹ค.
*
* @param style ๋ฒ„ํŠผ์˜ ํ…์ŠคํŠธ์— ์ ์šฉํ•  ํ…์ŠคํŠธ ์Šคํƒ€์ผ์ž…๋‹ˆ๋‹ค.
* @param paddingVertical ๋ฒ„ํŠผ ๋‚ด๋ถ€ ์ฝ˜ํ…์ธ ์˜ ์ˆ˜์ง ํŒจ๋”ฉ ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param text ๋ฒ„ํŠผ์— ํ‘œ์‹œ๋  ๋ฌธ์ž์—ด์˜ ๋ฆฌ์†Œ์Šค ID์ž…๋‹ˆ๋‹ค.
* @param onButtonClick ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ํ˜ธ์ถœ๋  ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param modifier ๋ฒ„ํŠผ์— ์ ์šฉํ•  Modifier์ž…๋‹ˆ๋‹ค.
* @param isEnabled ๋ฒ„ํŠผ ํ™œ์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
* @param cornerRadius ๋ฒ„ํŠผ์˜ ๋ชจ์„œ๋ฆฌ ๋ฐ˜๊ฒฝ์„ ์„ค์ •ํ•˜๋Š” Dp ๊ฐ’์ž…๋‹ˆ๋‹ค.
*/
@Composable
fun DeleteRoundButton(
style: TextStyle,
Expand Down Expand Up @@ -54,4 +68,18 @@ fun DeleteRoundButton(
)
}
}
}

@Preview(showBackground = true)
@Composable
fun DeleteRoundButtonPreview() {
TerningPointTheme {
DeleteRoundButton(
style = TextStyle(),
paddingVertical = 15.dp,
text = R.string.button_preview,
onButtonClick = {},
cornerRadius = 10.dp
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.annotation.StringRes
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.collectIsPressedAsState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
Expand All @@ -18,10 +19,13 @@ import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import com.terning.core.R
import com.terning.core.designsystem.theme.Grey400
import com.terning.core.designsystem.theme.TerningMain
import com.terning.core.designsystem.theme.TerningPointTheme
import com.terning.core.designsystem.theme.TerningSub1
import com.terning.core.designsystem.theme.TerningSub3
import com.terning.core.designsystem.theme.TerningSub4
Expand All @@ -30,6 +34,19 @@ import com.terning.core.designsystem.theme.TerningTheme
import com.terning.core.designsystem.theme.White
import com.terning.core.util.NoRippleTheme

/**
* ์˜จ๋ณด๋”ฉ ๊ณผ์ •์—์„œ ํ•„ํ„ฐ๋ง์„ ์„ค์ •ํ•  ๋•Œ ์‚ฌ์šฉ๋˜๋Š” ๋ฒ„ํŠผ์ž…๋‹ˆ๋‹ค.
*
* ๋ฒ„ํŠผ ํด๋ฆญ์„ ํด๋ฆญํ–ˆ์„ ๋•Œ, ๋ฒ„ํŠผ์˜ ๋ฐฐ๊ฒฝ ์ƒ‰๊ณผ ํ…์ŠคํŠธ ์ƒ‰์ƒ์ด ๋ฐ”๋€๋‹ˆ๋‹ค.
*
* @param isSelected ๋ฒ„ํŠผ์ด ์„ ํƒ๋๋Š”์ง€ ์—ฌ๋ถ€๋ฅผ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.
* @param text ๋ฒ„ํŠผ์— ํ‘œ์‹œ๋  ๋ฌธ์ž์—ด์˜ ๋ฆฌ์†Œ์Šค ID์ž…๋‹ˆ๋‹ค.
* @param cornerRadius ๋ฒ„ํŠผ์˜ ๋ชจ์„œ๋ฆฌ ๋ฐ˜๊ฒฝ์„ ์„ค์ •ํ•˜๋Š” Dp ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param paddingVertical ๋ฒ„ํŠผ ๋‚ด๋ถ€ ์ฝ˜ํ…์ธ ์˜ ์ˆ˜์ง ํŒจ๋”ฉ ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param onButtonClick ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ํ˜ธ์ถœ๋  ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param isEnabled ๋ฒ„ํŠผ ํ™œ์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
* @param modifier ๋ฒ„ํŠผ์— ์ ์šฉํ•  Modifier์ž…๋‹ˆ๋‹ค.
*/
@Composable
fun FilteringButton(
isSelected: Boolean,
Expand Down Expand Up @@ -80,3 +97,26 @@ fun FilteringButton(
}
}
}

@Preview(showBackground = true)
@Composable
fun FilteringButtonPreview() {
TerningPointTheme {
Column {
FilteringButton(
isSelected = true,
text = R.string.button_preview,
cornerRadius = 15.dp,
paddingVertical = 10.dp,
onButtonClick = {}
)
FilteringButton(
isSelected = false,
text = R.string.button_preview,
cornerRadius = 15.dp,
paddingVertical = 10.dp,
onButtonClick = {}
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ import com.terning.core.R
import com.terning.core.designsystem.theme.TerningPointTheme
import com.terning.core.designsystem.theme.TerningTheme

/**
* ๋ชจ์„œ๋ฆฌ์˜ ๋‘ฅ๊ทผ ๋ถ€๋ถ„์ด ์—†๋Š” ์ง์‚ฌ๊ฐํ˜• ๋ฒ„ํŠผ์ž…๋‹ˆ๋‹ค.
*
* @param style ๋ฒ„ํŠผ์˜ ํ…์ŠคํŠธ์— ์ ์šฉํ•  ํ…์ŠคํŠธ ์Šคํƒ€์ผ์ž…๋‹ˆ๋‹ค.
* @param paddingVertical ๋ฒ„ํŠผ ๋‚ด๋ถ€ ์ฝ˜ํ…์ธ ์˜ ์ˆ˜์ง ํŒจ๋”ฉ ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param text ๋ฒ„ํŠผ์— ํ‘œ์‹œ๋  ๋ฌธ์ž์—ด์˜ ๋ฆฌ์†Œ์Šค ID์ž…๋‹ˆ๋‹ค.
* @param onButtonClick ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ํ˜ธ์ถœ๋  ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param modifier ๋ฒ„ํŠผ์— ์ ์šฉํ•  Modifier์ž…๋‹ˆ๋‹ค.
* @param isEnabled ๋ฒ„ํŠผ ํ™œ์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
*/
@Composable
fun RectangleButton(
style: TextStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,17 @@ import com.terning.core.R
import com.terning.core.designsystem.theme.TerningPointTheme
import com.terning.core.designsystem.theme.TerningTheme

/**
* ๋ชจ์„œ๋ฆฌ์˜ ๋‘ฅ๊ทผ ๋ถ€๋ถ„์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฒ„ํŠผ์ž…๋‹ˆ๋‹ค.
*
* @param style ๋ฒ„ํŠผ์˜ ํ…์ŠคํŠธ์— ์ ์šฉํ•  ํ…์ŠคํŠธ ์Šคํƒ€์ผ์ž…๋‹ˆ๋‹ค.
* @param paddingVertical ๋ฒ„ํŠผ ๋‚ด๋ถ€ ์ฝ˜ํ…์ธ ์˜ ์ˆ˜์ง ํŒจ๋”ฉ ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param cornerRadius ๋ฒ„ํŠผ์˜ ๋ชจ์„œ๋ฆฌ ๋ฐ˜๊ฒฝ์„ ์„ค์ •ํ•˜๋Š” Dp ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param text ๋ฒ„ํŠผ์— ํ‘œ์‹œ๋  ๋ฌธ์ž์—ด์˜ ๋ฆฌ์†Œ์Šค ID์ž…๋‹ˆ๋‹ค.
* @param onButtonClick ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ํ˜ธ์ถœ๋  ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param modifier ๋ฒ„ํŠผ์— ์ ์šฉํ•  Modifier์ž…๋‹ˆ๋‹ค.
* @param isEnabled ๋ฒ„ํŠผ ํ™œ์„ฑํ™” ์—ฌ๋ถ€๋ฅผ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
*/
@Composable
fun RoundButton(
style: TextStyle,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ private val years =
private val monthsNumber =
(listOf("") + (START_MONTH..END_MONTH).map { it.toString() } + listOf("") + listOf("")).toImmutableList()

/**
* ๋ฐ์ดํŠธ ํ”ผ์ปค๋ฅผ ๋‚˜ํƒ€๋ƒ…๋‹ˆ๋‹ค.
*
* ์‚ฌ์šฉ์ž๊ฐ€ ์›ํ•˜๋Š” ์—ฐ๋„์™€ ์›”์„ ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
*
* @param chosenYear ์„ ํƒ๋œ ์—ฐ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param chosenMonth ์„ ํƒ๋œ ์›”์„ ๋‚˜ํƒ€๋‚ด๋Š” ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param onYearChosen ์—ฐ๋„๊ฐ€ ์„ ํƒ๋˜์—ˆ์„ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param onMonthChosen ์›”์ด ์„ ํƒ๋˜์—ˆ์„ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
*/
@Composable
fun DatePickerUI(
chosenYear: Int,
Expand All @@ -60,6 +70,14 @@ fun DatePickerUI(
}
}

/**
* ์—ฐ๋„์™€ ์›”์„ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋Š” ๋‘ ๊ฐœ์˜ ํ”ผ์ปค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.
*
* @param chosenYear ์„ ํƒ๋œ ์—ฐ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋Š” ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param chosenMonth ์„ ํƒ๋œ ์›”์„ ๋‚˜ํƒ€๋‚ด๋Š” ๊ฐ’์ž…๋‹ˆ๋‹ค.
* @param onYearChosen ์—ฐ๋„๊ฐ€ ์„ ํƒ๋˜์—ˆ์„ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param onMonthChosen ์›”์ด ์„ ํƒ๋˜์—ˆ์„ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
*/
@Composable
fun DateSelectionSection(
chosenYear: Int,
Expand Down Expand Up @@ -87,6 +105,15 @@ fun DateSelectionSection(
}
}

/**
* ์‚ฌ์šฉ์ž๊ฐ€ ์Šคํฌ๋กค์„ ํ†ตํ•ด ์—ฐ๋„ ๋˜๋Š” ์›”์„ ์„ ํƒํ•  ์ˆ˜ ์žˆ๋Š” ํ”ผ์ปค์ž…๋‹ˆ๋‹ค.
*
* @param items ์„ ํƒ ๊ฐ€๋Šฅํ•œ ํ•ญ๋ชฉ๋“ค์˜ ๋ฆฌ์ŠคํŠธ์ž…๋‹ˆ๋‹ค. (์—ฐ๋„ ๋˜๋Š” ์›”)
* @param firstIndex ์ดˆ๊ธฐ ์„ ํƒ๋œ ํ•ญ๋ชฉ์˜ ์ธ๋ฑ์Šค์ž…๋‹ˆ๋‹ค. (์—ฐ๋„ ๋˜๋Š” ์›”)
* @param onItemSelected ํ•ญ๋ชฉ์ด ์„ ํƒ๋˜์—ˆ์„ ๋•Œ ํ˜ธ์ถœ๋˜๋Š” ์ฝœ๋ฐฑ ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
* @param modifier ๋ ˆ์ด์•„์›ƒ, ๋™์ž‘ ๋“ฑ์„ ์ˆ˜์ •ํ•  ์ˆ˜ ์žˆ๋Š” Modifier ์˜ต์…˜์ž…๋‹ˆ๋‹ค.
* @param isYear ์ด ํ”ผ์ปค๊ฐ€ ์—ฐ๋„๋ฅผ ์„ ํƒํ•˜๋Š” ๊ฒƒ์ธ์ง€์— ๋Œ€ํ•œ ์—ฌ๋ถ€์ž…๋‹ˆ๋‹ค.
*/
@Composable
fun DateItemsPicker(
items: List<String>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ import androidx.compose.ui.tooling.preview.Preview
import com.terning.core.R
import com.terning.core.designsystem.theme.TerningPointTheme

/**
* contentDescription์„ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  Image๋ฅผ ํŽธ๋ฆฌํ•˜๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ํ•จ์ˆ˜์ž…๋‹ˆ๋‹ค.
*
* @param painter ์ด๋ฏธ์ง€ ๋ฆฌ์†Œ์Šค ID์ž…๋‹ˆ๋‹ค.
* @param modifier Image์˜ Modifier์ž…๋‹ˆ๋‹ค.
*/
@Composable
fun TerningImage(
painter: Int,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.navigation.NavController
import com.terning.core.designsystem.component.button.RectangleButton
import com.terning.core.designsystem.component.image.TerningImage
import com.terning.core.designsystem.component.topappbar.BackButtonTopAppBar
Expand All @@ -24,14 +23,12 @@ import com.terning.core.designsystem.theme.TerningPointTheme
import com.terning.core.designsystem.theme.TerningTheme
import com.terning.feature.R
import com.terning.feature.filtering.filtering.component.StatusOneRadioGroup
import com.terning.feature.filtering.filtering.navigation.navigateFilteringTwo
import com.terning.feature.main.MainNavigator
import com.terning.feature.main.rememberMainNavigator

@Composable
fun FilteringOneScreen(
name: String,
navController: NavController,
onNextClick: (Int) -> Unit,
navigateUp: () -> Unit,
modifier: Modifier = Modifier,
onButtonClick: (Int) -> Unit = {},
) {
Expand All @@ -43,7 +40,7 @@ fun FilteringOneScreen(
modifier = modifier
) {
BackButtonTopAppBar(
onBackButtonClick = { navController.navigateUp() }
onBackButtonClick = { navigateUp() }
)
Column(
modifier = Modifier.fillMaxSize()
Expand Down Expand Up @@ -99,7 +96,7 @@ fun FilteringOneScreen(
style = TerningTheme.typography.button0,
paddingVertical = 20.dp,
text = R.string.filtering_button,
onButtonClick = { navController.navigateFilteringTwo(grade) },
onButtonClick = { onNextClick(grade) },
modifier = modifier.padding(bottom = 12.dp),
isEnabled = isButtonValid.value
)
Expand All @@ -110,12 +107,12 @@ fun FilteringOneScreen(
@Preview(showBackground = true)
@Composable
fun FilteringOneScreenPreview() {
val navigator: MainNavigator = rememberMainNavigator()
TerningPointTheme {
FilteringOneScreen(
name = "ํ„ฐ๋‹์ด",
navController = navigator.navController,
onButtonClick = {}
onButtonClick = {},
onNextClick = {},
navigateUp = {}
)
}
}
Loading

0 comments on commit ebc126f

Please sign in to comment.