Grouped notifications (v1)

This commit is contained in:
mgabdev
2020-04-02 21:05:49 -04:00
parent 416bc3d603
commit 0a89c7b775
9 changed files with 369 additions and 154 deletions

View File

@@ -73,7 +73,7 @@ export default class Input extends PureComponent {
})
const btnClasses = cx({
displayNone: value.length === 0,
displayNone: !value || value.length === 0,
px10: 1,
mr5: 1,
})

View File

@@ -1,16 +1,7 @@
import { Fragment } from 'react'
import { defineMessages, injectIntl } from 'react-intl'
import ImmutablePureComponent from 'react-immutable-pure-component'
import ImmutablePropTypes from 'react-immutable-proptypes'
import { shortNumberFormat } from '../../utils/numbers'
import PanelLayout from './panel_layout'
import Button from '../button'
import Divider from '../divider'
import Heading from '../heading'
import Icon from '../icon'
import Input from '../input'
import Switch from '../switch'
import Text from '../text'
const messages = defineMessages({
title: { id: 'notification_filters', defaultMessage: 'Notification Filters' },
@@ -27,25 +18,8 @@ class NotificationFilterPanel extends ImmutablePureComponent {
render() {
const { intl } = this.props
// date
// verfied or not
// specific user
// specific status
// only people i do/not follow
return (
<PanelLayout title={intl.formatMessage(messages.title)}>
<Text>Start Date</Text>
<Text>End Date</Text>
<Divider small />
<Input title='From specific user(s)' small />
<Input title='From a specific status' small />
<Divider small />
<Switch
id='notifications-verified'
label='Only Verified Users'

View File

@@ -59,6 +59,7 @@ class TabBarItem extends PureComponent {
justifyContentCenter: 1,
borderBottom2PX: 1,
py5: 1,
cursorPointer: 1,
backgroundTransparent: 1,
borderColorTransparent: !isCurrent,
borderColorBrand: isCurrent,