Skip to content

Commit

Permalink
update share button
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaaaanquish committed Jun 22, 2024
1 parent 6aa6649 commit c4bf532
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torisetsu/src/jsMain/kotlin/components/base/XShareButton.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package components.base

import androidx.compose.runtime.Composable
import kotlinx.browser.window
import org.jetbrains.compose.web.attributes.ATarget
import org.jetbrains.compose.web.attributes.target
import org.jetbrains.compose.web.dom.A
Expand All @@ -11,7 +12,7 @@ import org.jetbrains.compose.web.dom.Text
@Composable
fun XShareButton() {
A(
href = "https://twitter.com/intent/tweet?text=私のトリタイプが見つかりました!&url=https://m3dev.github.io/torisetsu&hashtags=エンジニアトリ診断",
href = "https://twitter.com/intent/tweet?text=私のトリタイプが見つかりました!&url=" + window.location.href + "&hashtags=エンジニアトリ診断",
attrs = {
target(ATarget.Blank)
classes(XShareButtonStyle.rootElm)
Expand Down

0 comments on commit c4bf532

Please sign in to comment.