Skip to content

Commit

Permalink
refactor(capture-sdk): replaced the CaretScope for tooltip, with Tool…
Browse files Browse the repository at this point in the history
…tipScope, as it is renamed with the updated compose api.
  • Loading branch information
obaidgini committed Jan 9, 2025
1 parent da9e635 commit 29b9a04
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
package net.gini.android.capture.ui.components.tooltip

import androidx.compose.foundation.layout.padding
import androidx.compose.material3.CaretProperties
import androidx.compose.material3.CaretScope
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.PlainTooltip
import androidx.compose.material3.Text
import androidx.compose.material3.TooltipBox
import androidx.compose.material3.TooltipDefaults
import androidx.compose.material3.TooltipScope
import androidx.compose.material3.rememberTooltipState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -45,16 +44,14 @@ fun GiniTooltipBox(
}

@Composable
private fun CaretScope.GiniPlainTooltip(
private fun TooltipScope.GiniPlainTooltip(
modifier: Modifier = Modifier,
caretProperties: (CaretProperties)? = null,
contentColor: Color,
containerColor: Color,
content: @Composable () -> Unit
) {
PlainTooltip(
modifier = modifier,
caretProperties = caretProperties,
contentColor = contentColor,
containerColor = containerColor,
content = content
Expand Down

0 comments on commit 29b9a04

Please sign in to comment.