Skip to content

Commit

Permalink
fix: color porperty
Browse files Browse the repository at this point in the history
  • Loading branch information
scopsy committed Jan 21, 2025
1 parent c972f3f commit d673eca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/dashboard/src/components/environments-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useAuth } from '@/context/auth/hooks';
import { useEnvironment, useFetchEnvironments } from '@/context/environment/hooks';
import { useDeleteEnvironment } from '@/hooks/use-environments';
import { cn } from '@/utils/ui';
import { IEnvironment, PROTECTED_ENVIRONMENTS } from '@novu/shared';
import { EnvironmentEnum, IEnvironment, PROTECTED_ENVIRONMENTS } from '@novu/shared';
import { useState } from 'react';
import { RiDeleteBin2Line, RiMore2Fill } from 'react-icons/ri';
import { DeleteEnvironmentDialog } from './delete-environment-dialog';
Expand Down Expand Up @@ -125,7 +125,7 @@ export function EnvironmentsList() {
</TimeDisplayHoverCard>
</TableCell>
<TableCell className="h-[49px] w-1">
{!PROTECTED_ENVIRONMENTS.includes(environment.name) && (
{!PROTECTED_ENVIRONMENTS.includes(environment.name as EnvironmentEnum) && (
<DropdownMenu modal={false}>
<DropdownMenuTrigger asChild>
<CompactButton
Expand All @@ -146,7 +146,7 @@ export function EnvironmentsList() {
onSelect={() => handleDeleteClick(environment)}
disabled={
environment._id === currentEnvironment?._id ||
PROTECTED_ENVIRONMENTS.includes(environment.name)
PROTECTED_ENVIRONMENTS.includes(environment.name as EnvironmentEnum)
}
>
<RiDeleteBin2Line />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface IEnvironment {
widget: IWidgetSettings;
dns?: IDnsSettings;
apiRateLimits?: IApiRateLimitMaximum;
color?: string;
color: string;
branding?: {
color: string;
logo: string;
Expand Down

0 comments on commit d673eca

Please sign in to comment.