-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from PawWithU/feature/inter_management
feature/inter_management: 봉사 관리 화면 수정
- Loading branch information
Showing
232 changed files
with
971 additions
and
236 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
27 changes: 27 additions & 0 deletions
27
...m/kusitms/connectdog/core/data/api/model/intermediator/InterAnnouncementDetailResponse.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,27 @@ | ||
package com.kusitms.connectdog.core.data.api.model.intermediator | ||
|
||
import com.kusitms.connectdog.core.data.api.model.volunteer.NoticeDetailResponseItem | ||
|
||
data class InterAnnouncementDetailResponse( | ||
val arrivalLoc: String, | ||
val content: String, | ||
val departureLoc: String, | ||
val dogName: String, | ||
val dogSize: String, | ||
val endDate: String, | ||
val images: List<String>, | ||
val intermediaryId: Int, | ||
val intermediaryName: String, | ||
val intermediaryProfileImage: String, | ||
val isKennel: Boolean, | ||
val mainImage: String, | ||
val pickUpTime: String, | ||
val postId: Int, | ||
val postStatus: String, | ||
val specifics: String?, | ||
val startDate: String | ||
) { | ||
fun toData() = NoticeDetailResponseItem( | ||
arrivalLoc, content, departureLoc, dogName, dogSize, endDate, images, intermediaryId, intermediaryName, intermediaryProfileImage, isBookmark = false, isKennel, mainImage, pickUpTime, postId, postStatus, specifics, startDate | ||
) | ||
} |
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
Binary file modified
BIN
+0 Bytes
(100%)
...system/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ld/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...otlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...em/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len
Binary file not shown.
Binary file modified
BIN
-47 Bytes
(98%)
...build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values
Binary file not shown.
Binary file modified
BIN
+3.38 KB
(120%)
...ld/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...ild/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.s
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 |
---|---|---|
@@ -1 +1 @@ | ||
�, | ||
�+ |
Binary file modified
BIN
+0 Bytes
(100%)
...stem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ignsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...d/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...ompileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+0 Bytes
(100%)
...leReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...tlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len
Binary file not shown.
Binary file modified
BIN
-12 Bytes
(98%)
...n/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values
Binary file not shown.
Binary file modified
BIN
+1.99 KB
(220%)
...ompileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.s
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 |
---|---|---|
@@ -1 +1 @@ | ||
� | ||
� |
Binary file modified
BIN
+0 Bytes
(100%)
...kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...d/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...tlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...m/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.len
Binary file not shown.
Binary file modified
BIN
+9 Bytes
(110%)
...d/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...tem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/package-parts.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../designsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...tem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ignsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len
Binary file not shown.
Binary file modified
BIN
-164 Bytes
(99%)
...system/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values
Binary file not shown.
Binary file modified
BIN
+1.17 KB
(250%)
...tem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...stem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.s
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 |
---|---|---|
@@ -1 +1 @@ | ||
٭ | ||
�� |
Binary file modified
BIN
+0 Bytes
(100%)
...esignsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...m/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...tlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ild/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len
Binary file not shown.
Binary file modified
BIN
+1.65 KB
(110%)
...tlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
.../designsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/counters.tab
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
25 | ||
28 | ||
0 |
Binary file modified
BIN
+0 Bytes
(100%)
...esignsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...m/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ild/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...nsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len
Binary file not shown.
Binary file modified
BIN
+18 Bytes
(110%)
...m/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ignsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...esignsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...m/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ild/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...nsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len
Binary file not shown.
Binary file modified
BIN
+378 Bytes
(110%)
...m/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ignsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/designsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...stem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...signsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
Binary file not shown.
Binary file modified
BIN
+666 Bytes
(110%)
...nsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values
Binary file not shown.
Binary file modified
BIN
+1.25 KB
(690%)
...stem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
...ystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.s
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 |
---|---|---|
@@ -1 +1 @@ | ||
�j | ||
�t |
Binary file modified
BIN
+0 Bytes
(100%)
...designsystem/build/kotlin/compileReleaseKotlin/cacheable/caches-jvm/lookups/lookups.tab_i
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/designsystem/build/kotlin/compileReleaseKotlin/cacheable/last-build.bin
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
core/designsystem/build/kotlin/compileReleaseKotlin/local-state/build-history.bin
Binary file not shown.
Binary file modified
BIN
+177 Bytes
(140%)
...designsystem/build/tmp/kotlin-classes/release/META-INF/designsystem_release.kotlin_module
Binary file not shown.
Binary file modified
BIN
+11 Bytes
(100%)
...m/kusitms/connectdog/core/designsystem/component/ApplicationBottomSheetKt$Content$1.class
Binary file not shown.
Binary file removed
BIN
-1.97 KB
...kusitms/connectdog/core/designsystem/component/ApplicationBottomSheetKt$TopAppBar$1.class
Binary file not shown.
Binary file modified
BIN
+44 Bytes
(100%)
...release/com/kusitms/connectdog/core/designsystem/component/ApplicationBottomSheetKt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-2$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-3$1.class
Binary file not shown.
Binary file modified
BIN
-230 Bytes
(93%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-4$1.class
Binary file not shown.
Binary file modified
BIN
-28 Bytes
(99%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-5$1.class
Binary file not shown.
Binary file modified
BIN
-53 Bytes
(98%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-6$1.class
Binary file not shown.
Binary file removed
BIN
-1.17 KB
...onnectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-7$1$1.class
Binary file not shown.
Binary file removed
BIN
-1.17 KB
...onnectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-7$1$2.class
Binary file not shown.
Binary file modified
BIN
-409 Bytes
(88%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-7$1.class
Binary file not shown.
Binary file modified
BIN
+17 Bytes
(100%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-8$1.class
Binary file not shown.
Binary file removed
BIN
-1.17 KB
...onnectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-9$1$1.class
Binary file not shown.
Binary file removed
BIN
-1.17 KB
...onnectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-9$1$2.class
Binary file not shown.
Binary file modified
BIN
-108 Bytes
(96%)
.../connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt$lambda-9$1.class
Binary file not shown.
Binary file modified
BIN
+1.55 KB
(130%)
...com/kusitms/connectdog/core/designsystem/component/ComposableSingletons$TopAppBarKt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...m/kusitms/connectdog/core/designsystem/component/ListItemKt$AnnouncementContent$1$1.class
Binary file not shown.
Binary file modified
BIN
+13 Bytes
(100%)
...se/com/kusitms/connectdog/core/designsystem/component/ListItemKt$AnnouncementItem$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/core/designsystem/component/ListItemKt$IntermediatorInfo$1$1$1$1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...kusitms/connectdog/core/designsystem/component/ListItemKt$ListForOrganizationItem$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...kusitms/connectdog/core/designsystem/component/ListItemKt$ListForOrganizationItem$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ase/com/kusitms/connectdog/core/designsystem/component/ListItemKt$ListForUserItem$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...ase/com/kusitms/connectdog/core/designsystem/component/ListItemKt$ListForUserItem$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...e/com/kusitms/connectdog/core/designsystem/component/ListItemKt$ReviewItemContent$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...com/kusitms/connectdog/core/designsystem/component/ListItemKt$ReviewItemContent$2$1.class
Binary file not shown.
Binary file modified
BIN
+95 Bytes
(100%)
...otlin-classes/release/com/kusitms/connectdog/core/designsystem/component/ListItemKt.class
Binary file not shown.
Binary file modified
BIN
+19 Bytes
(100%)
...es/release/com/kusitms/connectdog/core/designsystem/component/ReviewRecentContentKt.class
Binary file not shown.
Binary file removed
BIN
-1.75 KB
...sses/release/com/kusitms/connectdog/core/designsystem/component/TextKt$DetailInfo$2.class
Binary file not shown.
Binary file removed
BIN
-1.86 KB
...es/release/com/kusitms/connectdog/core/designsystem/component/TextKt$TextWithIcon$2.class
Binary file not shown.
Binary file removed
BIN
-13.7 KB
...mp/kotlin-classes/release/com/kusitms/connectdog/core/designsystem/component/TextKt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...om/kusitms/connectdog/core/designsystem/component/TopAppBarKt$ConnectDogTopAppBar$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...tms/connectdog/core/designsystem/component/TopAppBarKt$ConnectDogTopAppBar$icon$1$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
...sitms/connectdog/core/designsystem/component/TopAppBarKt$ConnectDogTopAppBar$icon$1.class
Binary file not shown.
Binary file modified
BIN
+2.86 KB
(110%)
...tlin-classes/release/com/kusitms/connectdog/core/designsystem/component/TopAppBarKt.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
.../release/com/kusitms/connectdog/core/designsystem/component/TopAppBarNavigationType.class
Binary file not shown.
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
69 changes: 69 additions & 0 deletions
69
...src/main/java/com/kusitms/connectdog/core/designsystem/component/button/BookmarkButton.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,69 @@ | ||
package com.kusitms.connectdog.core.designsystem.component.button | ||
|
||
import android.util.Log | ||
import androidx.compose.foundation.Image | ||
import androidx.compose.foundation.border | ||
import androidx.compose.foundation.layout.PaddingValues | ||
import androidx.compose.foundation.layout.height | ||
import androidx.compose.foundation.layout.width | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.material3.Button | ||
import androidx.compose.material3.ButtonDefaults | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.runtime.getValue | ||
import androidx.compose.runtime.mutableIntStateOf | ||
import androidx.compose.runtime.mutableStateOf | ||
import androidx.compose.runtime.remember | ||
import androidx.compose.runtime.setValue | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.graphics.Color | ||
import androidx.compose.ui.graphics.painter.Painter | ||
import androidx.compose.ui.res.painterResource | ||
import androidx.compose.ui.unit.dp | ||
import com.kusitms.connectdog.core.designsystem.R | ||
import com.kusitms.connectdog.core.designsystem.theme.Gray2 | ||
import com.kusitms.connectdog.core.designsystem.theme.Gray5 | ||
import com.kusitms.connectdog.core.designsystem.theme.PetOrange | ||
|
||
@Composable | ||
fun BookmarkButton( | ||
isBookmark: Boolean, | ||
onSaveClick: () -> Unit, | ||
onDeleteClick: () -> Unit | ||
) { | ||
var isActive by remember { mutableStateOf(isBookmark) } | ||
val shape = RoundedCornerShape(12.dp) | ||
val (imageResource, setImageResource) = remember { mutableIntStateOf(if (isActive) R.drawable.ic_bookmark_filled else R.drawable.ic_bookmark) } | ||
val (borderColor, setBorderColor) = remember { mutableStateOf(if (isActive) PetOrange else Gray5) } | ||
val imagePainter: Painter = painterResource(id = imageResource) | ||
|
||
Button( | ||
onClick = { | ||
isActive = !isActive | ||
setImageResource(if (isActive) R.drawable.ic_bookmark_filled else R.drawable.ic_bookmark) | ||
setBorderColor(if (isActive) PetOrange else Gray5) | ||
Log.d("testsss", isActive.toString()) | ||
if (isActive) { | ||
onSaveClick() | ||
} else { | ||
onDeleteClick() | ||
} | ||
}, | ||
contentPadding = PaddingValues(vertical = 16.dp), | ||
shape = shape, | ||
modifier = Modifier | ||
.width(56.dp) | ||
.height(56.dp) | ||
.border( | ||
width = 1.dp, | ||
color = borderColor, | ||
shape = shape | ||
), | ||
colors = ButtonDefaults.buttonColors(containerColor = Color.White, contentColor = Gray2) | ||
) { | ||
Image( | ||
painter = imagePainter, | ||
contentDescription = null | ||
) | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
.../src/main/java/com/kusitms/connectdog/core/designsystem/component/button/ProfileButton.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,39 @@ | ||
package com.kusitms.connectdog.core.designsystem.component.button | ||
|
||
import androidx.compose.foundation.BorderStroke | ||
import androidx.compose.foundation.layout.PaddingValues | ||
import androidx.compose.foundation.shape.RoundedCornerShape | ||
import androidx.compose.material3.Button | ||
import androidx.compose.material3.ButtonDefaults | ||
import androidx.compose.material3.Text | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.res.stringResource | ||
import androidx.compose.ui.text.font.FontWeight | ||
import androidx.compose.ui.unit.dp | ||
import androidx.compose.ui.unit.sp | ||
import com.kusitms.connectdog.core.designsystem.R | ||
import com.kusitms.connectdog.core.designsystem.theme.Gray2 | ||
import com.kusitms.connectdog.core.designsystem.theme.Gray5 | ||
|
||
@Composable | ||
fun ProfileButton(onClick: () -> Unit, modifier: Modifier) { | ||
val shape = RoundedCornerShape(8.dp) | ||
Button( | ||
onClick = onClick, | ||
shape = shape, | ||
modifier = modifier, | ||
colors = ButtonDefaults.outlinedButtonColors( | ||
contentColor = Gray2 | ||
), | ||
border = BorderStroke(1.dp, Gray5), | ||
contentPadding = PaddingValues(all = 8.dp) | ||
) { | ||
Text( | ||
text = stringResource(id = R.string.profile_button), | ||
fontSize = 12.sp, | ||
fontWeight = FontWeight.SemiBold, | ||
color = Gray2 | ||
) | ||
} | ||
} |
Oops, something went wrong.