mirror of
https://github.com/wassname/talk.git
synced 2026-08-18 12:30:39 +08:00
Account History
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
.table, .headerRow, .row {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.headerRowItem, .item {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.headerRowItem {
|
||||
text-align: center;
|
||||
color: #595959;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.headerRow, .row {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
}
|
||||
|
||||
.action {
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import styles from './AccountHistory.css';
|
||||
import cn from 'classnames';
|
||||
|
||||
class AccountHistory extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<div className={styles.table}>
|
||||
<div className={styles.headerRow}>
|
||||
<div className={styles.headerRowItem}>Date</div>
|
||||
<div className={styles.headerRowItem}>Action</div>
|
||||
<div className={styles.headerRowItem}>Moderation</div>
|
||||
</div>
|
||||
<div className={styles.row}>
|
||||
<div className={styles.item}>Date</div>
|
||||
<div className={cn(styles.item, styles.action)}>Action</div>
|
||||
<div className={styles.item}>Moderation</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
AccountHistory.propTypes = {
|
||||
history: PropTypes.array,
|
||||
};
|
||||
|
||||
export default AccountHistory;
|
||||
Reference in New Issue
Block a user