-
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 #9 from taetae98coding/develop
1.3.2
- Loading branch information
Showing
254 changed files
with
12,800 additions
and
7,729 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
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
35 changes: 35 additions & 0 deletions
35
...e/src/commonMain/kotlin/io/github/taetae98coding/diary/core/compose/error/NetworkError.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,35 @@ | ||
package io.github.taetae98coding.diary.core.compose.error | ||
|
||
import androidx.compose.foundation.layout.Box | ||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.material3.Text | ||
import androidx.compose.material3.TextButton | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.runtime.remember | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.Modifier | ||
import io.github.taetae98coding.diary.core.design.system.emoji.Emoji | ||
import io.github.taetae98coding.diary.core.design.system.theme.DiaryTheme | ||
|
||
@Composable | ||
public fun NetworkError( | ||
onRetry: () -> Unit, | ||
modifier: Modifier = Modifier, | ||
) { | ||
Box( | ||
modifier = modifier, | ||
contentAlignment = Alignment.Center, | ||
) { | ||
Column(horizontalAlignment = Alignment.CenterHorizontally) { | ||
val emoji = remember { Emoji.check.random() } | ||
|
||
Text( | ||
text = "네트워크 상태를 확인해 주세요 $emoji", | ||
style = DiaryTheme.typography.headlineMedium, | ||
) | ||
TextButton(onClick = onRetry) { | ||
Text(text = "새로고침") | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.