fixing lint warnings

This commit is contained in:
Roland Osborne 2022-12-21 14:09:10 -08:00
parent e46b9a4e20
commit a08872ca61
4 changed files with 2 additions and 6 deletions

View File

@ -3,7 +3,6 @@ import { ProfileContext } from 'context/ProfileContext';
import { CardContext } from 'context/CardContext'; import { CardContext } from 'context/CardContext';
import { ChannelContext } from 'context/ChannelContext'; import { ChannelContext } from 'context/ChannelContext';
import CryptoJS from 'crypto-js'; import CryptoJS from 'crypto-js';
import { JSEncrypt } from 'jsencrypt'
export function useConversationContext() { export function useConversationContext() {
const TOPIC_BATCH = 32; const TOPIC_BATCH = 32;

View File

@ -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 }); 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 = { const actions = {
getAssetUrl: (assetId, topicId) => { getAssetUrl: (assetId, topicId) => {

View File

@ -6,7 +6,6 @@ import { ChannelContext } from 'context/ChannelContext';
import { ConversationContext } from 'context/ConversationContext'; import { ConversationContext } from 'context/ConversationContext';
import { UploadContext } from 'context/UploadContext'; import { UploadContext } from 'context/UploadContext';
import { StoreContext } from 'context/StoreContext'; import { StoreContext } from 'context/StoreContext';
import CryptoJS from 'crypto-js';
import { JSEncrypt } from 'jsencrypt' import { JSEncrypt } from 'jsencrypt'
export function useConversation(cardId, channelId) { export function useConversation(cardId, channelId) {
@ -29,8 +28,6 @@ export function useConversation(cardId, channelId) {
const account = useContext(AccountContext); const account = useContext(AccountContext);
const viewport = useContext(ViewportContext); const viewport = useContext(ViewportContext);
const card = useContext(CardContext);
const channel = useContext(ChannelContext);
const conversation = useContext(ConversationContext); const conversation = useContext(ConversationContext);
const upload = useContext(UploadContext); const upload = useContext(UploadContext);
const store = useContext(StoreContext); const store = useContext(StoreContext);

View File

@ -1,4 +1,4 @@
import { Space, Button, Modal } from 'antd'; import { Button, Modal } from 'antd';
import { DetailsWrapper, ModalFooter } from './Details.styled'; import { DetailsWrapper, ModalFooter } from './Details.styled';
import { DoubleRightOutlined, RightOutlined, CloseOutlined } from '@ant-design/icons'; import { DoubleRightOutlined, RightOutlined, CloseOutlined } from '@ant-design/icons';
import { useDetails } from './useDetails.hook'; import { useDetails } from './useDetails.hook';