Skip to content

Commit 3c4fe79

Browse files
authored
ci: FIT-638: Optimize Running spinner bundle size by removing unused … (#8294)
Co-authored-by: luarmr <luarmr@users.noreply.github.com>
1 parent f437012 commit 3c4fe79

File tree

7 files changed

+2
-21
lines changed

7 files changed

+2
-21
lines changed
-4.14 KB
Binary file not shown.
-9.95 KB
Binary file not shown.
-8.99 KB
Binary file not shown.
-25.5 KB
Binary file not shown.
-251 KB
Binary file not shown.

web/libs/datamanager/src/assets/running.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,8 @@
1-
import Running24 from "!!url-loader!./Running-24.gif";
2-
import Running24x2 from "!!url-loader!./Running-24@2x.gif";
3-
import Running48 from "!!url-loader!./Running-48.gif";
4-
import Running48x2 from "!!url-loader!./Running-48@2x.gif";
51
import Running64 from "!!url-loader!./Running-64.gif";
62
import Running64x2 from "!!url-loader!./Running-64@2x.gif";
7-
import Running from "!!url-loader!./Running.gif";
83

94
const sizes = {
10-
full: {
11-
x1: Running,
12-
x2: Running,
13-
},
14-
24: {
15-
x1: Running24,
16-
x2: Running24x2,
17-
},
18-
48: {
19-
x1: Running48,
20-
x2: Running48x2,
21-
},
22-
64: {
5+
default: {
236
x1: Running64,
247
x2: Running64x2,
258
},

web/libs/datamanager/src/components/Common/Spinner.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ export const Spinner = injector(({ SDK, visible = true, ...props }) => {
2222
}
2323
}, [props.size]);
2424

25-
const source = React.useMemo(() => {
26-
return Running.full;
27-
}, [props.size]);
25+
const source = Running.default;
2826

2927
const videoStyles = {
3028
width: "100%",

0 commit comments

Comments
 (0)