mirror of
https://github.com/wassname/talk.git
synced 2026-08-08 11:28:12 +08:00
Add title
This commit is contained in:
@@ -12,6 +12,12 @@
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.title {
|
||||
padding: 0;
|
||||
margin: 0 0 8px 0;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.button {
|
||||
composes: buttonReset from "coral-framework/styles/reset.css";
|
||||
border: 1px solid rgba(1, 1, 1, 0.8);
|
||||
|
||||
@@ -2,9 +2,12 @@ import React from 'react';
|
||||
import styles from './IgnoreUserConfirmation.css';
|
||||
import {t} from 'plugin-api/beta/client/services';
|
||||
|
||||
export default ({ignoreUser, cancel}) => (
|
||||
<div className={styles.root}>
|
||||
export default ({ignoreUser, cancel, username}) => (
|
||||
<aside className={styles.root}>
|
||||
<div className={styles.message}>
|
||||
<h1 className={styles.title}>
|
||||
{t('talk-plugin-ignore-user.confirmation_title', username)}
|
||||
</h1>
|
||||
{t('talk-plugin-ignore-user.confirmation')}
|
||||
</div>
|
||||
<div className={styles.actions}>
|
||||
@@ -15,5 +18,5 @@ export default ({ignoreUser, cancel}) => (
|
||||
{t('talk-plugin-ignore-user.ignore_user')}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
);
|
||||
|
||||
@@ -28,7 +28,7 @@ class IgnoreUserConfirmationContainer extends React.Component {
|
||||
|
||||
render() {
|
||||
return <IgnoreUserConfirmation
|
||||
username={this.props.comment.username}
|
||||
username={this.props.comment.user.username}
|
||||
ignoreUser={this.ignoreUser}
|
||||
cancel={this.cancel}
|
||||
/>;
|
||||
|
||||
@@ -7,5 +7,6 @@ en:
|
||||
undo this later from My Profile.
|
||||
notify_success: |
|
||||
You are now ignoring {0}. You can undo this action from My Profile.
|
||||
confirmation_title: Ignore {0}?
|
||||
es:
|
||||
talk-plugin-ignore-user:
|
||||
|
||||
Reference in New Issue
Block a user