@parca/profile 0.12.35 → 0.12.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.12.36](https://github.com/parca-dev/parca/compare/ui-v0.12.35...ui-v0.12.36) (2022-05-06)
7
+
8
+ **Note:** Version bump only for package @parca/profile
9
+
6
10
  ## 0.12.35 (2022-05-05)
7
11
 
8
12
  **Note:** Version bump only for package @parca/profile
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parca/profile",
3
- "version": "0.12.35",
3
+ "version": "0.12.36",
4
4
  "description": "Profile viewing libraries",
5
5
  "dependencies": {
6
6
  "@parca/client": "^0.12.35",
@@ -19,5 +19,5 @@
19
19
  "access": "public",
20
20
  "registry": "https://registry.npmjs.org/"
21
21
  },
22
- "gitHead": "fed473933d7121da23057be959f8b009a0737f0f"
22
+ "gitHead": "bf00c1edfc430b108a4457cc6943e1e160dca89c"
23
23
  }
@@ -3,7 +3,7 @@ import {CalcWidth} from '@parca/dynamicsize';
3
3
  import {parseParams} from '@parca/functions';
4
4
  import {QueryServiceClient, QueryResponse, QueryRequest_ReportType} from '@parca/client';
5
5
  import {RpcError} from '@protobuf-ts/runtime-rpc';
6
- import {Button, Card, useGrpcMetadata} from '@parca/components';
6
+ import {Button, Card, Spinner, useGrpcMetadata, useParcaTheme} from '@parca/components';
7
7
  import * as parca_query_v1alpha1_query_pb from '@parca/client/src/parca/query/v1alpha1/query_pb';
8
8
 
9
9
  import ProfileIcicleGraph from './ProfileIcicleGraph';
@@ -47,6 +47,7 @@ export const ProfileView = ({
47
47
  );
48
48
  const [currentView, setCurrentView] = useState<string | undefined>(currentViewFromURL);
49
49
  const metadata = useGrpcMetadata();
50
+ const {loader} = useParcaTheme();
50
51
 
51
52
  useEffect(() => {
52
53
  let showLoaderTimeout;
@@ -62,39 +63,7 @@ export const ProfileView = ({
62
63
  }, [isLoading]);
63
64
 
64
65
  if (isLoaderVisible) {
65
- return (
66
- <div
67
- style={{
68
- display: 'flex',
69
- justifyContent: 'center',
70
- alignItems: 'center',
71
- height: 'inherit',
72
- marginTop: 100,
73
- }}
74
- >
75
- <svg
76
- className="animate-spin -ml-1 mr-3 h-5 w-5"
77
- xmlns="http://www.w3.org/2000/svg"
78
- fill="none"
79
- viewBox="0 0 24 24"
80
- >
81
- <circle
82
- className="opacity-25"
83
- cx="12"
84
- cy="12"
85
- r="10"
86
- stroke="currentColor"
87
- strokeWidth="4"
88
- ></circle>
89
- <path
90
- className="opacity-75"
91
- fill="currentColor"
92
- d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
93
- ></path>
94
- </svg>
95
- <span>Loading...</span>
96
- </div>
97
- );
66
+ return <>{loader}</>;
98
67
  }
99
68
 
100
69
  if (error !== null) {