forked from cerc-io/snowballtools-base
format
This commit is contained in:
parent
c6ebcafaac
commit
92016c8837
@ -49,7 +49,10 @@ const DeploymentDetailsCard = ({
|
|||||||
prodBranchDomains,
|
prodBranchDomains,
|
||||||
}: DeployDetailsCardProps) => {
|
}: DeployDetailsCardProps) => {
|
||||||
const getIconByDeploymentStatus = (status: DeploymentStatus) => {
|
const getIconByDeploymentStatus = (status: DeploymentStatus) => {
|
||||||
if (status === DeploymentStatus.Building || status === DeploymentStatus.Deleting) {
|
if (
|
||||||
|
status === DeploymentStatus.Building ||
|
||||||
|
status === DeploymentStatus.Deleting
|
||||||
|
) {
|
||||||
return <LoadingIcon className="animate-spin" />;
|
return <LoadingIcon className="animate-spin" />;
|
||||||
}
|
}
|
||||||
if (status === DeploymentStatus.Ready) {
|
if (status === DeploymentStatus.Ready) {
|
||||||
|
@ -19,10 +19,7 @@ const root = ReactDOM.createRoot(
|
|||||||
document.getElementById('root') as HTMLElement,
|
document.getElementById('root') as HTMLElement,
|
||||||
);
|
);
|
||||||
|
|
||||||
assert(
|
assert(import.meta.env.VITE_SERVER_URL, 'VITE_SERVER_URL is not set in env');
|
||||||
import.meta.env.VITE_SERVER_URL,
|
|
||||||
'VITE_SERVER_URL is not set in env',
|
|
||||||
);
|
|
||||||
const gqlEndpoint = `${import.meta.env.VITE_SERVER_URL}/${SERVER_GQL_PATH}`;
|
const gqlEndpoint = `${import.meta.env.VITE_SERVER_URL}/${SERVER_GQL_PATH}`;
|
||||||
|
|
||||||
const gqlClient = new GQLClient({ gqlEndpoint });
|
const gqlClient = new GQLClient({ gqlEndpoint });
|
||||||
|
Loading…
Reference in New Issue
Block a user