mirror of
https://github.com/wassname/talk.git
synced 2026-07-13 17:45:56 +08:00
Removing styles from sign in
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
.dialogusername {
|
||||
border: none;
|
||||
box-shadow: 0 9px 46px 8px rgba(0, 0, 0, 0.14), 0 11px 15px -7px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.2);
|
||||
width: 400px;
|
||||
top: 10px;
|
||||
}
|
||||
|
||||
.yourusername {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import styles from './SetUsernameDialog.css';
|
||||
import {
|
||||
Dialog,
|
||||
Alert,
|
||||
TextField,
|
||||
Button,
|
||||
} from 'plugin-api/beta/client/components/ui';
|
||||
import { Alert, TextField, Button } from 'plugin-api/beta/client/components/ui';
|
||||
import { FakeComment } from './FakeComment';
|
||||
import { t } from 'plugin-api/beta/client/services';
|
||||
|
||||
@@ -22,52 +17,50 @@ class SetUsernameDialog extends React.Component {
|
||||
const { username, usernameError, errorMessage } = this.props;
|
||||
|
||||
return (
|
||||
<Dialog className={styles.dialogusername} id="createUsernameDialog" open>
|
||||
<div>
|
||||
<div className={styles.header}>
|
||||
<h1>
|
||||
{t('talk-plugin-auth.set_username_dialog.write_your_username')}
|
||||
</h1>
|
||||
</div>
|
||||
<div>
|
||||
<p className={styles.yourusername}>
|
||||
{t('talk-plugin-auth.set_username_dialog.your_username')}
|
||||
</p>
|
||||
<FakeComment
|
||||
className={styles.fakeComment}
|
||||
username={username}
|
||||
created_at={new Date().toISOString()}
|
||||
body={t('talk-plugin-auth.set_username_dialog.fake_comment_body')}
|
||||
/>
|
||||
{errorMessage && <Alert>{errorMessage}</Alert>}
|
||||
<form id="saveUsername" onSubmit={this.handleSubmit}>
|
||||
{usernameError && (
|
||||
<span className={styles.hint}>
|
||||
{' '}
|
||||
{t(
|
||||
'talk-plugin-auth.set_username_dialog.special_characters'
|
||||
)}{' '}
|
||||
</span>
|
||||
)}
|
||||
<div className={styles.saveusername}>
|
||||
<TextField
|
||||
id="username"
|
||||
style={{ fontSize: 16 }}
|
||||
type="string"
|
||||
label={t('talk-plugin-auth.set_username_dialog.username')}
|
||||
value={username}
|
||||
showErrors={!!usernameError}
|
||||
errorMsg={usernameError}
|
||||
onChange={this.handleUsernameChange}
|
||||
/>
|
||||
<Button id="save" type="submit" className={styles.saveButton}>
|
||||
{t('talk-plugin-auth.set_username_dialog.save')}
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<div className={styles.header}>
|
||||
<h1>
|
||||
{t('talk-plugin-auth.set_username_dialog.write_your_username')}
|
||||
</h1>
|
||||
</div>
|
||||
</Dialog>
|
||||
<div>
|
||||
<p className={styles.yourusername}>
|
||||
{t('talk-plugin-auth.set_username_dialog.your_username')}
|
||||
</p>
|
||||
<FakeComment
|
||||
className={styles.fakeComment}
|
||||
username={username}
|
||||
created_at={new Date().toISOString()}
|
||||
body={t('talk-plugin-auth.set_username_dialog.fake_comment_body')}
|
||||
/>
|
||||
{errorMessage && <Alert>{errorMessage}</Alert>}
|
||||
<form id="saveUsername" onSubmit={this.handleSubmit}>
|
||||
{usernameError && (
|
||||
<span className={styles.hint}>
|
||||
{' '}
|
||||
{t(
|
||||
'talk-plugin-auth.set_username_dialog.special_characters'
|
||||
)}{' '}
|
||||
</span>
|
||||
)}
|
||||
<div className={styles.saveusername}>
|
||||
<TextField
|
||||
id="username"
|
||||
style={{ fontSize: 16 }}
|
||||
type="string"
|
||||
label={t('talk-plugin-auth.set_username_dialog.username')}
|
||||
value={username}
|
||||
showErrors={!!usernameError}
|
||||
errorMsg={usernameError}
|
||||
onChange={this.handleUsernameChange}
|
||||
/>
|
||||
<Button id="save" type="submit" className={styles.saveButton}>
|
||||
{t('talk-plugin-auth.set_username_dialog.save')}
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user