Skip to content

Commit a529e8e

Browse files
committed
refactor: use GithubStoreButton in StarredReposRoot
- Replace the standard Material3 `Button` with the custom `GithubStoreButton` component. - Update imports to include `GithubStoreButton` and remove the unused `androidx.compose.material3.Button` import.
1 parent 37aae10 commit a529e8e

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • feature/starred/presentation/src/commonMain/kotlin/zed/rainxch/starred/presentation

feature/starred/presentation/src/commonMain/kotlin/zed/rainxch/starred/presentation/StarredReposRoot.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import androidx.compose.material.icons.Icons
1818
import androidx.compose.material.icons.automirrored.filled.ArrowBack
1919
import androidx.compose.material.icons.filled.Close
2020
import androidx.compose.material.icons.filled.Star
21-
import androidx.compose.material3.Button
2221
import androidx.compose.material3.CircularProgressIndicator
2322
import androidx.compose.material3.CircularWavyProgressIndicator
2423
import androidx.compose.material3.ExperimentalMaterial3Api
@@ -47,6 +46,7 @@ import androidx.lifecycle.compose.collectAsStateWithLifecycle
4746
import kotlinx.collections.immutable.persistentListOf
4847
import org.jetbrains.compose.resources.stringResource
4948
import org.koin.compose.viewmodel.koinViewModel
49+
import zed.rainxch.core.presentation.components.GithubStoreButton
5050
import zed.rainxch.core.presentation.theme.GithubStoreTheme
5151
import zed.rainxch.githubstore.core.presentation.res.*
5252
import zed.rainxch.starred.presentation.components.StarredRepositoryItem
@@ -317,9 +317,10 @@ private fun EmptyStateContent(
317317
if (actionText != null && onActionClick != null) {
318318
Spacer(modifier = Modifier.height(16.dp))
319319

320-
Button(onClick = onActionClick) {
321-
Text(actionText)
322-
}
320+
GithubStoreButton(
321+
text = actionText,
322+
onClick = onActionClick,
323+
)
323324
}
324325
}
325326
}

0 commit comments

Comments
 (0)