Skip to content

Commit

Permalink
feat(notification-settings): adapt to new state slicing pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
epiqueras committed Dec 23, 2018
1 parent 292dd08 commit fe9877f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/notification-settings.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { Alert, Button, Checkbox, Divider, Form, Input, Popover } from 'antd'
import React, { useCallback, useState } from 'react'
import { useDrizzle, useDrizzleState } from '../temp/drizzle-react-hooks'
import { ReactComponent as Mail } from '../assets/images/mail.svg'
import PropTypes from 'prop-types'
import styled from 'styled-components/macro'
import { useDrizzle } from '../temp/drizzle-react-hooks'

const NotificationSettingsForm = Form.create()(
styled(({ className, form, settings: { key, ...settings } }) => {
const { drizzle, drizzleState } = useDrizzle()
const { drizzle } = useDrizzle()
const drizzleState = useDrizzleState(drizzleState => ({
accounts: drizzleState.accounts
}))
const [status, setStatus] = useState()
return (
<Form
Expand Down

0 comments on commit fe9877f

Please sign in to comment.