Skip to content

Commit

Permalink
Simplify the code in "MdFab.kt" even more by removing the '?'s
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreckYe committed Jan 3, 2025
1 parent 514528d commit 8dba4a4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ https://material-web.dev/components/fab/stories/
*/

fun <TElement : Element> SimplifiedTagElement(
content: (ElementScope<TElement>.() -> Unit)?
content: (ElementScope<TElement>.() -> Unit)
) {
TODO()
}

class MdFabScope(val elementScope: ElementScope<HTMLElement>)

private fun SimplifiedMdFab(
content: (MdFabScope.() -> Unit)?
content: (MdFabScope.() -> Unit)
) =
SimplifiedTagElement(content?.let {
SimplifiedTagElement(content.let {
{ MdFabScope(this).it() }
})

0 comments on commit 8dba4a4

Please sign in to comment.