Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into fix/#73-writing-fix
Browse files Browse the repository at this point in the history
# Conflicts:
#	feature/src/main/java/com/terning/feature/main/MainNavigator.kt
  • Loading branch information
arinming committed Jul 15, 2024
2 parents 41238cb + 84a57bd commit 9bfdd35
Show file tree
Hide file tree
Showing 14 changed files with 524 additions and 333 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
package com.terning.core.designsystem.component.dialog

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Dialog
import androidx.compose.ui.window.DialogProperties
import com.terning.core.R
import com.terning.core.designsystem.component.button.RoundButton
import com.terning.core.designsystem.theme.Grey300
import com.terning.core.designsystem.theme.TerningTheme
import com.terning.core.designsystem.theme.White
import com.terning.core.extension.noRippleClickable

@Composable
fun TerningBasicDialog(
Expand All @@ -20,21 +38,35 @@ fun TerningBasicDialog(
onDismissRequest = { onDismissRequest() },
properties = properties,
) {
content()
}
}

@Preview(showBackground = true, showSystemUi = true)
@Composable
fun TerningBasicDialogPreview() {
TerningBasicDialog(
onDismissRequest = {},
content = {
ScrapDialogContent(
onDismissRequest = {},
isScrapped = false,
internInfoList = listOf()
)
Box(
modifier = Modifier
.fillMaxWidth()
.wrapContentHeight()
.padding(30.dp)
.background(
color = White,
shape = RoundedCornerShape(20.dp)
),
) {
Row(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.End
) {
IconButton(
onClick = { onDismissRequest() },
modifier = Modifier
.padding(6.dp)
) {
Icon(
painter = painterResource(id = R.drawable.ic_dialog_x_32),
contentDescription = null,
tint = Grey300,
modifier = Modifier
.noRippleClickable { onDismissRequest() }
)
}
}
content()
}
)
}
}
3 changes: 3 additions & 0 deletions core/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
<string name="dialog_content_scrap_sub_title">๊ณต๊ณ ๋ฅผ ์บ˜๋ฆฐ๋”์— ์Šคํฌ๋žฉํ•˜์‹œ๊ฒ ์–ด์š”?</string>
<string name="dialog_content_color_button">์ƒ‰์ƒ</string>
<string name="dialog_scrap_button">๋‚ด ์บ˜๋ฆฐ๋”์— ์Šคํฌ๋žฉํ•˜๊ธฐ</string>
<string name="dialog_content_scrap_cancel_main_title">๊ด€์‹ฌ ๊ณต๊ณ ๊ฐ€ ์บ˜๋ฆฐ๋”์—์„œ ์‚ฌ๋ผ์ ธ์š”!</string>
<string name="dialog_content_scrap_cancel_sub_title">์Šคํฌ๋žฉ์„ ์ทจ์†Œํ•˜์‹œ๊ฒ ์–ด์š”?</string>
<string name="dialog_scrap_cancel_button">์Šคํฌ๋žฉ ์ทจ์†Œํ•˜๊ธฐ</string>

<!--Intern-->
<string name="intern_info_d_day">์„œ๋ฅ˜ ๋งˆ๊ฐ</string>
Expand Down
Loading

0 comments on commit 9bfdd35

Please sign in to comment.