Skip to content

Commit

Permalink
🐛 All interfaces should be able to support displaying the token View (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
guiyanakuang authored Jan 30, 2024
1 parent 1135527 commit ef2656b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.clipevery.ui.HomeView
import com.clipevery.ui.PageViewContext
import com.clipevery.ui.PageViewType
import com.clipevery.ui.devices.DeviceDetailView
import com.clipevery.ui.devices.TokenView
import com.clipevery.ui.settings.SettingsView
import org.koin.core.KoinApplication

Expand Down Expand Up @@ -95,6 +96,7 @@ fun ClipeveryWindow(hideWindow: () -> Unit) {
@Composable
fun ClipeveryContent() {
val currentPageViewContext = remember { mutableStateOf(PageViewContext(PageViewType.CLIP_PREVIEW)) }
TokenView()
when (currentPageViewContext.value.pageViewType) {
PageViewType.CLIP_PREVIEW,
PageViewType.DEVICE_PREVIEW,
Expand Down
2 changes: 0 additions & 2 deletions composeApp/src/commonMain/kotlin/com/clipevery/ui/HomeView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,12 @@ import com.clipevery.LocalKoinApplication
import com.clipevery.i18n.GlobalCopywriter
import com.clipevery.loadImageBitmap
import com.clipevery.ui.base.ClipIconButton
import com.clipevery.ui.devices.TokenView
import java.awt.Desktop
import java.net.URI

@Composable
fun HomeView(currentPageViewContext: MutableState<PageViewContext>) {
HomeWindowDecoration(currentPageViewContext)
TokenView()
TabsView(currentPageViewContext)
}

Expand Down

0 comments on commit ef2656b

Please sign in to comment.