Skip to content

Commit

Permalink
refactor: CompletedDialog 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
kang9366 committed May 26, 2024
1 parent a1a4d67 commit 3d06e3f
Showing 1 changed file with 0 additions and 47 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.kusitms.connectdog.feature.intermediator.component

import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
Expand Down Expand Up @@ -34,12 +33,10 @@ import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.kusitms.connectdog.core.designsystem.component.AnnouncementItem
import com.kusitms.connectdog.core.designsystem.component.ConnectDogAlertDialog
import com.kusitms.connectdog.core.designsystem.component.ConnectDogBottomButton
import com.kusitms.connectdog.core.designsystem.component.ConnectDogSecondaryButton
import com.kusitms.connectdog.core.designsystem.component.ListForOrganizationItem
import com.kusitms.connectdog.core.designsystem.theme.Gray1
import com.kusitms.connectdog.core.designsystem.theme.Gray2
import com.kusitms.connectdog.core.designsystem.theme.Gray3
import com.kusitms.connectdog.core.designsystem.theme.Gray4
import com.kusitms.connectdog.core.designsystem.theme.Gray5
Expand Down Expand Up @@ -251,47 +248,3 @@ private fun ReviewRecentButton(
)
}
}

@Composable
internal fun CompletedDialog(
onDismissRequest: () -> Unit
) {
ConnectDogAlertDialog(onDismissRequest = onDismissRequest) {
Column(
modifier = Modifier
.background(
color = MaterialTheme.colorScheme.surface,
shape = RoundedCornerShape(20.dp)
)
.padding(20.dp),
horizontalAlignment = Alignment.CenterHorizontally
) {
Image(
painter = painterResource(id = R.drawable.img_dog_running),
contentDescription = stringResource(id = R.string.dialog_completed_volunteer)
)
Spacer(modifier = Modifier.size(30.dp))
Column(
verticalArrangement = Arrangement.spacedBy(9.dp),
horizontalAlignment = Alignment.CenterHorizontally
) {
Text(
text = stringResource(id = R.string.dialog_completed_volunteer),
style = MaterialTheme.typography.titleLarge,
fontSize = 18.sp
)
Text(
text = stringResource(id = R.string.dialog_completed_description),
color = Gray2,
style = MaterialTheme.typography.bodyMedium,
fontSize = 14.sp
)
}
Spacer(modifier = Modifier.size(40.dp))
ConnectDogBottomButton(
onClick = onDismissRequest,
content = stringResource(id = R.string.ok)
)
}
}
}

0 comments on commit 3d06e3f

Please sign in to comment.