mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Teams: Add a back button to the search/view pages
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
84bb82a413
commit
60ee938a1d
|
|
@ -56,6 +56,7 @@ Config.routes = {
|
|||
dex: '${routes.dex}',
|
||||
replays: '${routes.replays}',
|
||||
users: '${routes.users}',
|
||||
teams: '${routes.teams}',
|
||||
};
|
||||
${AUTOCONFIG_END}`;
|
||||
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ export class TeamSearcher extends preact.Component<PageProps> {
|
|||
return <div class="section" style={{ wordWrap: 'break-word' }}>Loading...</div>;
|
||||
}
|
||||
return <div class="section" style={{ wordWrap: 'break-word', textAlign: 'center' }}>
|
||||
<small><a href={'//' + Config.routes.teams}><i class="fa fa-arrow-left"></i></a></small>
|
||||
<h1>Search Teams</h1>
|
||||
<br />
|
||||
<div name="searchsection">
|
||||
|
|
|
|||
|
|
@ -232,7 +232,8 @@ export class TeamViewer extends preact.Component<PageProps> {
|
|||
const link = this.id + (this.pw ? `-${this.pw}` : '');
|
||||
|
||||
return <div class="section" style={{ wordWrap: 'break-word' }}>
|
||||
<h2>{title}</h2>
|
||||
<small><a href={'//' + Config.routes.teams}><i class="fa fa-arrow-left"></i></a></small>
|
||||
<h1>{title}</h1>
|
||||
Owner: <strong style={{ color: BattleLog.usernameColor(ownerid as any) }}>{ownerid}</strong><br />
|
||||
Format: {format}<br />
|
||||
Views: {views}<br />
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user