Skip to content

Commit 8e39544

Browse files
committed
simplify DslMarker usage
1 parent 3a37fc0 commit 8e39544

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

data-table/src/commonMain/kotlin/com/seanproctor/datatable/DataTableDsl.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import androidx.compose.runtime.Composable
44
import androidx.compose.ui.graphics.Color
55
import androidx.compose.ui.unit.Dp
66

7-
@Target(AnnotationTarget.CLASS, AnnotationTarget.TYPE)
87
@DslMarker
98
annotation class DataTableScopeMarker
109

@@ -18,7 +17,7 @@ interface DataTableScope {
1817
* Creates a new row in the [BasicDataTable] with the specified content.
1918
*/
2019
fun row(
21-
content: @DataTableScopeMarker TableRowScope.() -> Unit
20+
content: TableRowScope.() -> Unit
2221
)
2322
}
2423

@@ -30,7 +29,7 @@ interface TableRowScope {
3029
var isFooter: Boolean
3130
var backgroundColor: Color
3231

33-
fun cell(content: @DataTableScopeMarker @Composable TableCellScope.() -> Unit)
32+
fun cell(content: @Composable TableCellScope.() -> Unit)
3433
}
3534

3635
@DataTableScopeMarker

0 commit comments

Comments
 (0)