Client: Shared: remove useless code

This commit is contained in:
Aleksandr Lushkin 2024-07-29 17:04:16 +02:00
parent 31323d26ba
commit e155ca9059
15 changed files with 12 additions and 41 deletions

View File

@ -67,7 +67,6 @@ import {
import styled, { css } from "styled-components";
import { resendInvitesAgain } from "@docspace/shared/api/people";
import { getCorrectFourValuesStyle } from "@docspace/shared/utils";
import { ArticleButtonLoader } from "@docspace/shared/skeletons/article";
import { isMobile, isTablet } from "react-device-detect";

View File

@ -25,7 +25,7 @@
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import styled from "styled-components";
import { getCorrectFourValuesStyle, mobileMore } from "@docspace/shared/utils";
import { mobileMore } from "@docspace/shared/utils";
const StyledBreakpointWarning = styled.div`
padding-block: 24px 0;

View File

@ -28,11 +28,7 @@ import { useState, useEffect } from "react";
import styled from "styled-components";
import { RectangleSkeleton } from "@docspace/shared/skeletons";
import {
getCorrectFourValuesStyle,
isMobile,
mobileMore,
} from "@docspace/shared/utils";
import { isMobile, mobileMore } from "@docspace/shared/utils";
const StyledLoader = styled.div`
padding-top: 25px;

View File

@ -32,11 +32,7 @@ import styled, { css } from "styled-components";
import { Badge } from "@docspace/shared/components/badge";
import { Link } from "@docspace/shared/components/link";
import { Text } from "@docspace/shared/components/text";
import {
commonIconsStyles,
getCorrectFourValuesStyle,
tablet,
} from "@docspace/shared/utils";
import { commonIconsStyles, tablet } from "@docspace/shared/utils";
import MenuIcon from "PUBLIC_DIR/images/menu.react.svg";
import { Base } from "@docspace/shared/themes";

View File

@ -27,7 +27,7 @@
import { ModalDialog } from "@docspace/shared/components/modal-dialog";
import styled from "styled-components";
import { getCorrectFourValuesStyle, tablet } from "@docspace/shared/utils";
import { tablet } from "@docspace/shared/utils";
const StyledDeleteDialog = styled(ModalDialog)`
/* .scroll-body {

View File

@ -25,7 +25,7 @@
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import { ModalDialog } from "@docspace/shared/components/modal-dialog";
import { tablet, getCorrectFourValuesStyle } from "@docspace/shared/utils";
import { tablet } from "@docspace/shared/utils";
import styled from "styled-components";
const StyledDeleteLinkDialog = styled(ModalDialog)`

View File

@ -25,7 +25,7 @@
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import { ModalDialog } from "@docspace/shared/components/modal-dialog";
import { tablet, getCorrectFourValuesStyle } from "@docspace/shared/utils";
import { tablet } from "@docspace/shared/utils";
import styled from "styled-components";
const StyledMoveToPublicRoomDialog = styled(ModalDialog)`

View File

@ -25,11 +25,7 @@
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import styled from "styled-components";
import {
mobile,
tablet,
getCorrectFourValuesStyle,
} from "@docspace/shared/utils";
import { mobile, tablet } from "@docspace/shared/utils";
export const StyledPage = styled.div`
display: flex;

View File

@ -29,13 +29,7 @@ import { Base } from "@docspace/shared/themes";
import TileContent from "./sub-components/TileContent";
import { ContextMenu } from "@docspace/shared/components/context-menu";
import {
tablet,
desktop,
mobile,
mobileMore,
getCorrectFourValuesStyle,
} from "@docspace/shared/utils";
import { tablet, desktop, mobile, mobileMore } from "@docspace/shared/utils";
const FlexBoxStyles = css`
display: flex;

View File

@ -26,10 +26,6 @@
import styled, { css } from "styled-components";
import { Base } from "@docspace/shared/themes";
import {
getCorrectBorderRadius,
getCorrectFourValuesStyle,
} from "@docspace/shared/utils";
const StyledComponent = styled.div`
display: inline-flex;

View File

@ -26,7 +26,7 @@
import styled, { css } from "styled-components";
import { Row } from "@docspace/shared/components/row";
import { tablet, getCorrectFourValuesStyle } from "@docspace/shared/utils";
import { tablet } from "@docspace/shared/utils";
import { Base } from "@docspace/shared/themes";
const StyledBody = styled.div`

View File

@ -25,7 +25,6 @@
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import styled, { css } from "styled-components";
import { getCorrectFourValuesStyle } from "../../utils";
import { Base } from "../../themes";
const Selectors = styled.div<{ hasError?: boolean }>`

View File

@ -26,12 +26,7 @@
import styled, { css } from "styled-components";
import { Base } from "../../themes";
import {
mobile,
tablet,
getCorrectBorderRadius,
getCorrectFourValuesStyle,
} from "../../utils";
import { mobile, tablet } from "../../utils";
import { IconButton } from "../icon-button";
import { Scrollbar } from "../scrollbar";
import { ColorTheme } from "../color-theme";

View File

@ -25,7 +25,7 @@
// International. See the License terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
import styled, { css } from "styled-components";
import { tablet, getCorrectFourValuesStyle } from "../../utils";
import { tablet } from "../../utils";
import { Base } from "../../themes";
const StyledContextMenu = styled.div`

View File

@ -26,7 +26,7 @@
import styled from "styled-components";
import { tablet, getCorrectFourValuesStyle } from "@docspace/shared/utils";
import { tablet } from "@docspace/shared/utils";
export const StyledWrapper = styled.div`
width: 660px;