Skip to content

Commit

Permalink
fix: [M3-8975] - Object Storage object uploader spinner spinning back…
Browse files Browse the repository at this point in the history
…wards (linode#11384)

* fix: [M3-8971] - Object Storage object uploader spinner spinning backwards

* Added changeset: Object Storage object uploader spinner spinning backwards

* changed upload icon to autorenew

* delete uploadPening.svg as it is not used anymore
  • Loading branch information
harsh-akamai authored Dec 11, 2024
1 parent cca950f commit 977e32c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11384-fixed-1733733978349.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Fixed
---

Object Storage object uploader spinner spinning backwards ([#11384](https://github.com/linode/manager/pull/11384))
7 changes: 0 additions & 7 deletions packages/manager/src/assets/icons/uploadPending.svg

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Typography, rotate360 } from '@linode/ui';
import AutorenewIcon from '@mui/icons-material/Autorenew';
import { styled } from '@mui/material/styles';
import { makeStyles } from 'tss-react/mui';

import UploadPending from 'src/assets/icons/uploadPending.svg';

import type { FileUploadProps } from './FileUpload';
import type { Theme } from '@mui/material/styles';

Expand Down Expand Up @@ -48,7 +47,7 @@ export const StyledRightWrapper = styled('div', {
display: 'flex',
}));

export const StyledUploadPending = styled(UploadPending, {
export const StyledUploadPendingIcon = styled(AutorenewIcon, {
label: 'StyledUploadPending',
})(({ theme }) => ({
animation: `${rotate360} 2s linear infinite`,
Expand Down
4 changes: 2 additions & 2 deletions packages/manager/src/components/Uploaders/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
StyledLeftWrapper,
StyledRightWrapper,
StyledRootContainer,
StyledUploadPending,
StyledUploadPendingIcon,
useStyles,
} from './FileUpload.styles';

Expand Down Expand Up @@ -113,7 +113,7 @@ export const FileUpload = React.memo((props: FileUploadProps) => {
width={22}
/>
) : (
<StyledUploadPending
<StyledUploadPendingIcon
data-qa-file-upload-pending
height={22}
width={22}
Expand Down

0 comments on commit 977e32c

Please sign in to comment.