remove mode settings
This commit is contained in:
parent
905ee66fa6
commit
cabe280aca
2 changed files with 1 additions and 47 deletions
|
@ -1,42 +0,0 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import Icon from 'mastodon/components/icon';
|
||||
|
||||
export default function ColumnSettings({ clearLog }) {
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className='column-settings__row'>
|
||||
<button className='text-btn column-header__setting-btn' tabIndex='0' onClick={clearLog}>
|
||||
<Icon id='eraser' />
|
||||
<FormattedMessage id='activity_log.clear' defaultMessage='Clear log' />
|
||||
</button>
|
||||
</div>
|
||||
<div role='group' aria-labelledby='activity-log-display-level'>
|
||||
<span id='activity-log-display-level' className='column-settings__section'>
|
||||
<FormattedMessage id='activity_log.display_level' defaultMessage='Show activities' />
|
||||
</span>
|
||||
|
||||
<div className='column-settings__row' style={{ display: 'flex', flexDirection: 'column' }}>
|
||||
<label for='show_mine'>
|
||||
<input type='radio' name='test' id='show_mine' checked />
|
||||
Show only activities related to me
|
||||
</label>
|
||||
<label for='show_additional'>
|
||||
<input type='radio' name='test' id='show_additional' />
|
||||
Also show activities from the following actors:
|
||||
</label>
|
||||
<label for='show_all'>
|
||||
<input type='radio' name='test' id='show_all' />
|
||||
Show all activities
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
ColumnSettings.propTypes = {
|
||||
clearLog: PropTypes.func.isRequired,
|
||||
};
|
|
@ -5,8 +5,6 @@ import ColumnHeader from 'mastodon/components/column_header';
|
|||
|
||||
import dummy_data from './dummy-data.json';
|
||||
|
||||
import ColumnSettings from './components/column_settings';
|
||||
|
||||
import ActivityPubVisualization from 'activity-pub-visualization';
|
||||
|
||||
export default function ActivityLog({ multiColumn }) {
|
||||
|
@ -45,9 +43,7 @@ export default function ActivityLog({ multiColumn }) {
|
|||
title='Activity Log'
|
||||
onClick={() => { columnElement.current.scrollTop() }}
|
||||
multiColumn={multiColumn}
|
||||
>
|
||||
<ColumnSettings clearLog={() => dispatch(['reset-logs'])} />
|
||||
</ColumnHeader>
|
||||
/>
|
||||
|
||||
<div className={`${darkMode ? 'dark' : ''}`}>
|
||||
<ActivityPubVisualization logs={logs} />
|
||||
|
|
Loading…
Add table
Reference in a new issue