|
1 | | -import { Skeleton, Tag, Alert } from "antd"; |
| 1 | +import { Skeleton, Tag, Alert, Spin } from "antd"; |
2 | 2 | import React from "react"; |
3 | 3 | import { Link } from "react-router-dom"; |
4 | 4 | import { Language, RepoIdentity } from "../../models"; |
@@ -33,6 +33,9 @@ const RepoDetails = ({ repo: identity }: Props) => { |
33 | 33 | const collaborators = repository?.collaborators?.nodes?.filter( |
34 | 34 | (collaborator): collaborator is Collaborator => !!collaborator, |
35 | 35 | ); |
| 36 | + const alertDescription = |
| 37 | + "For a while, you can't navigate through file" + |
| 38 | + " tree of repo - only view the main README"; |
36 | 39 | return ( |
37 | 40 | <div className="flex flex-col"> |
38 | 41 | <DetailsCard className="common-details" title={identity.name}> |
@@ -78,12 +81,14 @@ const RepoDetails = ({ repo: identity }: Props) => { |
78 | 81 | ))} |
79 | 82 | </DetailsCard> |
80 | 83 | )} |
81 | | - <Alert |
82 | | - style={{ borderRadius: 6, marginTop: 10 }} |
83 | | - showIcon |
84 | | - message="Files access" |
85 | | - description="For a while, you can't navigate thorugh file tree of repo - only view the main README" |
86 | | - /> |
| 84 | + <Spin spinning={loading}> |
| 85 | + <Alert |
| 86 | + style={{ borderRadius: 6, marginTop: 10 }} |
| 87 | + showIcon |
| 88 | + message="Files access" |
| 89 | + description={alertDescription} |
| 90 | + /> |
| 91 | + </Spin> |
87 | 92 | </div> |
88 | 93 | ); |
89 | 94 | }; |
|
0 commit comments