-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
Text
into the material
package and add BasicText
- Loading branch information
Showing
7 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
compose-multiplatform-common/src/jsMain/kotlin/com/huanshankeji/compose/BasicText.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.huanshankeji.compose | ||
|
||
import androidx.compose.runtime.Composable | ||
import org.jetbrains.compose.web.dom.Text | ||
|
||
@Composable | ||
actual fun BasicText(text: String) = | ||
Text(text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...se-multiplatform-material/src/commonMain/kotlin/com/huanshankeji/compose/material/Text.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.huanshankeji.compose.material | ||
|
||
import androidx.compose.runtime.Composable | ||
|
||
@Composable | ||
expect fun Text(text: String) |
8 changes: 8 additions & 0 deletions
8
compose-multiplatform-material/src/jsMain/kotlin/com/huanshankeji/compose/material/Text.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.huanshankeji.compose.material | ||
|
||
import androidx.compose.runtime.Composable | ||
import com.huanshankeji.compose.BasicText | ||
|
||
@Composable | ||
actual fun Text(text: String) = | ||
BasicText(text) |
2 changes: 1 addition & 1 deletion
2
...in/com/huanshankeji/compose/Components.kt → ...com/huanshankeji/compose/material/Text.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters