Skip to content

Commit

Permalink
Web: Files: Removed unused code, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kulak committed Jan 19, 2022
1 parent efbfb62 commit 8fa4d6e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 26 deletions.
5 changes: 2 additions & 3 deletions products/ASC.Files/Client/src/HOCs/withLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const pathname = window.location.pathname.toLowerCase();
const isEditor = pathname.indexOf("doceditor") !== -1;

let loadTimeout = null;

const withLoader = (WrappedComponent) => (Loader) => {
const withLoader = (props) => {
const { tReady, firstLoad, isLoaded, isLoading, viewAs } = props;
Expand All @@ -23,12 +22,12 @@ const withLoader = (WrappedComponent) => (Loader) => {
if (isLoading) {
cleanTimer();
loadTimeout = setTimeout(() => {
//console.log('inLoad', true)
//console.log("inLoad", true);
setInLoad(true);
}, 500);
} else {
cleanTimer();
//console.log('inLoad', false)
//console.log("inLoad", false);
setInLoad(false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,6 @@ const StyledFileTileBottom = styled.div`
padding: 9px 0;
height: 64px;
box-sizing: border-box;
.tile-file-loader {
padding-top: 4px;
padding-left: 3px;
}
`;

const StyledContent = styled.div`
Expand Down Expand Up @@ -491,25 +486,17 @@ class Tile extends React.PureComponent {
<StyledFileTileBottom>
{id !== -1 && !isEdit && (
<>
{!inProgress ? (
<div className="file-icon_container">
<div className="file-icon" onClick={this.onFileIconClick}>
{element}
</div>
<Checkbox
className="file-checkbox"
isChecked={checked}
isIndeterminate={indeterminate}
onChange={this.changeCheckbox}
/>
<div className="file-icon_container">
<div className="file-icon" onClick={this.onFileIconClick}>
{element}
</div>
) : (
<Loader
className="tile-file-loader"
type="oval"
size="16px"
<Checkbox
className="file-checkbox"
isChecked={checked}
isIndeterminate={indeterminate}
onChange={this.changeCheckbox}
/>
)}
</div>
</>
)}
<StyledContent
Expand Down
1 change: 0 additions & 1 deletion products/ASC.Files/Server/DocStore
Submodule DocStore deleted from b9a3b8

0 comments on commit 8fa4d6e

Please sign in to comment.