Skip to content

Commit

Permalink
Makes LocalClickHandler an explicit type.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Apr 8, 2024
1 parent a41ab96 commit a080af7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.halilibo.richtext.ui

import androidx.compose.runtime.CompositionLocal
import androidx.compose.runtime.ProvidableCompositionLocal
import androidx.compose.runtime.compositionLocalOf

/**
Expand All @@ -14,4 +16,4 @@ public fun interface LinkClickHandler {
* An internal composition local to pass through LinkClickHandler from root [BasicRichText]
* composable to children that render links.
*/
public val LocalLinkClickHandler = compositionLocalOf<LinkClickHandler?> { null }
public val LocalLinkClickHandler: ProvidableCompositionLocal<LinkClickHandler?> = compositionLocalOf<LinkClickHandler?> { null }

0 comments on commit a080af7

Please sign in to comment.