mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
fixing lint warnings
This commit is contained in:
parent
e46b9a4e20
commit
a08872ca61
@ -3,7 +3,6 @@ import { ProfileContext } from 'context/ProfileContext';
|
||||
import { CardContext } from 'context/CardContext';
|
||||
import { ChannelContext } from 'context/ChannelContext';
|
||||
import CryptoJS from 'crypto-js';
|
||||
import { JSEncrypt } from 'jsencrypt'
|
||||
|
||||
export function useConversationContext() {
|
||||
const TOPIC_BATCH = 32;
|
||||
|
@ -123,7 +123,7 @@ export function useTopicItem(topic, sealed, sealKey) {
|
||||
updateState({ sealed, name, handle, imageUrl, status, text, transform, assets, confirmed, error, ready, created: createdStr, owner, textColor, textSize, topicId: topic.id, init: true });
|
||||
}
|
||||
}
|
||||
}, [profile, card, conversation, topic]);
|
||||
}, [profile, card, conversation, topic, sealKey]);
|
||||
|
||||
const actions = {
|
||||
getAssetUrl: (assetId, topicId) => {
|
||||
|
@ -6,7 +6,6 @@ import { ChannelContext } from 'context/ChannelContext';
|
||||
import { ConversationContext } from 'context/ConversationContext';
|
||||
import { UploadContext } from 'context/UploadContext';
|
||||
import { StoreContext } from 'context/StoreContext';
|
||||
import CryptoJS from 'crypto-js';
|
||||
import { JSEncrypt } from 'jsencrypt'
|
||||
|
||||
export function useConversation(cardId, channelId) {
|
||||
@ -29,8 +28,6 @@ export function useConversation(cardId, channelId) {
|
||||
|
||||
const account = useContext(AccountContext);
|
||||
const viewport = useContext(ViewportContext);
|
||||
const card = useContext(CardContext);
|
||||
const channel = useContext(ChannelContext);
|
||||
const conversation = useContext(ConversationContext);
|
||||
const upload = useContext(UploadContext);
|
||||
const store = useContext(StoreContext);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Space, Button, Modal } from 'antd';
|
||||
import { Button, Modal } from 'antd';
|
||||
import { DetailsWrapper, ModalFooter } from './Details.styled';
|
||||
import { DoubleRightOutlined, RightOutlined, CloseOutlined } from '@ant-design/icons';
|
||||
import { useDetails } from './useDetails.hook';
|
||||
|
Loading…
Reference in New Issue
Block a user