Drop the unused imports and the inert unused variables. [skip build]
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { ImgHTMLAttributes, forwardRef, useEffect, useState } from 'react';
|
||||
import React, { ImgHTMLAttributes, forwardRef } from 'react';
|
||||
import { useAuthenticatedMediaUrl } from '../../hooks/useAuthenticatedMediaUrl';
|
||||
import { useMediaAuthentication } from '../../hooks/useMediaAuthentication';
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ import { RenderElement, RenderLeaf } from './Elements';
|
||||
import { CustomElement } from './slate';
|
||||
import * as css from './Editor.css';
|
||||
import { toggleKeyboardShortcut } from './keyboard';
|
||||
import { createCommandElement } from './utils';
|
||||
|
||||
const initialValue: CustomElement[] = [
|
||||
{
|
||||
|
||||
@@ -55,7 +55,6 @@ import { EmojiBoardTab, EmojiType } from './types';
|
||||
import { VirtualTile } from '../virtualizer';
|
||||
|
||||
const MOST_USED_GROUP_ID = 'most_used_group';
|
||||
const RECENT_GROUP_ID = 'recent_group';
|
||||
const SEARCH_GROUP_ID = 'search_group';
|
||||
|
||||
type EmojiGroupItem = {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { style } from '@vanilla-extract/css';
|
||||
import { DefaultReset, toRem } from 'folds';
|
||||
import { DefaultReset } from 'folds';
|
||||
|
||||
export const Image = style([
|
||||
DefaultReset,
|
||||
|
||||
@@ -15,12 +15,7 @@ import { useNavigate } from 'react-router-dom';
|
||||
import { WindowControls } from './WindowControls';
|
||||
import { UpdateNotification } from '../update-notification';
|
||||
import * as css from './TitleBar.css';
|
||||
import {
|
||||
getUnreadInfos,
|
||||
getOrphanParents,
|
||||
guessPerfectParent,
|
||||
getAllParents,
|
||||
} from '../../utils/room';
|
||||
import { getUnreadInfos, getOrphanParents, guessPerfectParent } from '../../utils/room';
|
||||
import { getCanonicalAliasOrRoomId, getMxIdLocalPart, isRoomId } from '../../utils/matrix';
|
||||
import { activeRoomIdAtom } from '../../state/activeRoom';
|
||||
import { roomToParentsAtom } from '../../state/room/roomToParents';
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Box, IconButton } from 'folds';
|
||||
import { Box } from 'folds';
|
||||
import { invoke } from '@tauri-apps/api/core';
|
||||
import { Icon } from '../icons';
|
||||
import * as css from './WindowControls.css';
|
||||
|
||||
export function WindowControls() {
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { useAtom, useSetAtom } from 'jotai';
|
||||
import {
|
||||
loadCurrentUpdateDocument,
|
||||
loadUpdateDocument,
|
||||
loadUpdateManifest,
|
||||
type ParsedUpdateDoc,
|
||||
|
||||
@@ -26,7 +26,7 @@ import { getDirectCreatePath, withSearchParam } from '../../pages/pathUtils';
|
||||
import { DirectCreateSearchParams } from '../../pages/paths';
|
||||
import { getTextShadowColor } from '../../utils/common';
|
||||
import { BreakWord, LineClamp3 } from '../../styles/Text.css';
|
||||
import colorMXID, { getColorMXIDValue } from '../../../util/colorMXID';
|
||||
import { getColorMXIDValue } from '../../../util/colorMXID';
|
||||
import { useOtherUserColor } from '../../hooks/useUserColor';
|
||||
|
||||
type UserRoomProfileProps = {
|
||||
|
||||
Reference in New Issue
Block a user