chore: import upstream snapshot with attribution
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user