Skip to content

Commit ef6b9c1

Browse files
author
sw-yx
committed
app buttons
1 parent 3b88029 commit ef6b9c1

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

example/src/App.tsx

+25-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,31 @@ function Login({ }: MaybePathProps) {
7575
</div>
7676
)}
7777
{setting && <pre>{JSON.stringify(setting, null, 2)}</pre>}
78-
{setting && setting.external.github && <div onClick={() => loginProvider("github")}>GitHub</div>}
78+
{setting && setting.external.bitbucket && (
79+
<button className="btn" onClick={() => loginProvider("bitbucket")}>
80+
bitbucket
81+
</button>
82+
)}
83+
{setting && setting.external.github && (
84+
<button className="btn" style={{ background: "blue" }} onClick={() => loginProvider("github")}>
85+
GitHub
86+
</button>
87+
)}
88+
{setting && setting.external.gitlab && (
89+
<button className="btn" style={{ background: "darkgreen" }} onClick={() => loginProvider("gitlab")}>
90+
Gitlab
91+
</button>
92+
)}
93+
{setting && setting.external.google && (
94+
<button className="btn" style={{ background: "orangered" }} onClick={() => loginProvider("google")}>
95+
Google
96+
</button>
97+
)}
98+
{setting && setting.external.facebook && (
99+
<button className="btn" style={{ background: "darkblue" }} onClick={() => loginProvider("facebook")}>
100+
Facebook
101+
</button>
102+
)}
79103
</form>
80104
)
81105
}

0 commit comments

Comments
 (0)