From af768c5d743e054b003d106e50bd59ecb72958bb Mon Sep 17 00:00:00 2001 From: MohamedRejeb Date: Sat, 21 Sep 2024 10:02:47 +0100 Subject: [PATCH] Format BasicRichText --- .../kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt b/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt index 068e0749..8e5e9c9b 100644 --- a/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt +++ b/richeditor-compose/src/commonMain/kotlin/com/mohamedrejeb/richeditor/ui/BasicRichText.kt @@ -65,8 +65,11 @@ public fun BasicRichText( val position = event.changes.first().position val isLink = state.isLink(position) - if (isLink) pointerIcon.value = PointerIcon.Hand - else pointerIcon.value = PointerIcon.Default + pointerIcon.value = + if (isLink) + PointerIcon.Hand + else + PointerIcon.Default } } }