mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 19:56:39 +00:00
fix html elements used for logout account-card
This commit is contained in:
parent
31287c8899
commit
884e03b4c1
|
@ -39,9 +39,9 @@ export default function UserLogoutCard() {
|
||||||
return (
|
return (
|
||||||
<div className="account-card">
|
<div className="account-card">
|
||||||
<img className="avatar" src={profile.avatar} alt="" />
|
<img className="avatar" src={profile.avatar} alt="" />
|
||||||
<h3 className="text-cutoff">{profile.display_name?.length > 0 ? profile.display_name : profile.acct}</h3>
|
<b className="text-cutoff">{profile.display_name.length > 0 ? profile.display_name : profile.acct}</b>
|
||||||
<span className="text-cutoff">@{profile.username}@{instance?.account_domain}</span>
|
<span className="text-cutoff">@{profile.username}@{instance?.account_domain}</span>
|
||||||
<a onClick={logoutQuery} href="#" aria-label="Log out" title="Log out" className="logout">
|
<a onClick={() => void logoutQuery()} href="#" aria-label="Log out" title="Log out" className="logout">
|
||||||
<i className="fa fa-fw fa-sign-out" aria-hidden="true" />
|
<i className="fa fa-fw fa-sign-out" aria-hidden="true" />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -188,7 +188,7 @@ const extended = gtsApi.injectEndpoints({
|
||||||
return { data: null };
|
return { data: null };
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
logout: build.mutation({
|
logout: build.mutation<null, void>({
|
||||||
queryFn: (_arg, api) => {
|
queryFn: (_arg, api) => {
|
||||||
api.dispatch(oauthRemove());
|
api.dispatch(oauthRemove());
|
||||||
return { data: null };
|
return { data: null };
|
||||||
|
|
Loading…
Reference in a new issue