@orsetra/shared-ui 1.10.11 → 1.10.13

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.
@@ -24,7 +24,7 @@ export function AccessDeniedState({ resourceName, message, className }: AccessDe
24
24
  Access denied
25
25
  </h2>
26
26
  <p className="text-ibm-gray-60 text-sm md:text-base leading-relaxed text-center md:text-left">
27
- {message ?? `You don't have permission to view ${resourceName} in this business unit.`}
27
+ {message ?? `You don't have permission to view ${resourceName}.`}
28
28
  </p>
29
29
  </div>
30
30
  </div>
@@ -78,15 +78,18 @@ export function EnvironmentPickerDialog({
78
78
  <p className="text-sm text-ibm-gray-60">
79
79
  No environments found for this project yet. Create one to continue.
80
80
  </p>
81
- {CREATE_ENV_URL && (
82
- <Button
83
- variant="secondary"
84
- className="rounded-none h-9"
85
- leftIcon={<Plus className="h-3.5 w-3.5" />}
86
- onClick={() => { window.location.href = CREATE_ENV_URL }}
81
+ {CREATE_ENV_URL ? (
82
+ <a
83
+ href={CREATE_ENV_URL}
84
+ className="inline-flex items-center gap-1.5 h-9 px-4 text-sm border border-ibm-gray-30 bg-white hover:bg-ibm-gray-10 transition-colors"
87
85
  >
86
+ <Plus className="h-3.5 w-3.5" />
88
87
  Create an environment
89
- </Button>
88
+ </a>
89
+ ) : (
90
+ <p className="text-xs text-ibm-gray-50">
91
+ Go to Environments in the platform settings to create one.
92
+ </p>
90
93
  )}
91
94
  </div>
92
95
  ) : (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orsetra/shared-ui",
3
- "version": "1.10.11",
3
+ "version": "1.10.13",
4
4
  "description": "Shared UI components for Orsetra platform",
5
5
  "main": "./index.ts",
6
6
  "types": "./index.ts",