1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

refactor(ui/image-config): create react component [EE-5342] (#8856)

This commit is contained in:
Chaim Lev-Ari 2023-07-10 18:56:12 +03:00 committed by GitHub
parent bf51f1b6c9
commit 10014ae171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 1464 additions and 84 deletions

View file

@ -0,0 +1,12 @@
import {
Registry,
RegistryTypes,
} from '@/react/portainer/registries/types/registry';
export function getIsDockerHubRegistry(registry?: Registry | null) {
return (
!registry ||
registry.Type === RegistryTypes.DOCKERHUB ||
registry.Type === RegistryTypes.ANONYMOUS
);
}