Skip to content

Commit

Permalink
fix icon
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Feb 20, 2025
1 parent b2a998e commit e4c5e52
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions front/components/data_source/ZendeskConfigView.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import {
ContextItem,
IntercomLogo,
SliderToggle,
useSendNotification,
ZendeskLogo,
ZendeskWhiteLogo,
} from "@dust-tt/sparkle";
import type { APIError, DataSourceType, WorkspaceType } from "@dust-tt/types";
import { useState } from "react";

import { useTheme } from "@app/components/sparkle/ThemeContext";
import { useConnectorConfig } from "@app/lib/swr/connectors";

export function ZendeskConfigView({
Expand All @@ -20,6 +22,8 @@ export function ZendeskConfigView({
isAdmin: boolean;
dataSource: DataSourceType;
}) {
const { isDark } = useTheme();

const configKey = "zendeskSyncUnresolvedTicketsEnabled";

const { configValue, mutateConfig } = useConnectorConfig({
Expand Down Expand Up @@ -61,7 +65,11 @@ export function ZendeskConfigView({
<ContextItem.List>
<ContextItem
title="Sync unresolved tickets"
visual={<ContextItem.Visual visual={IntercomLogo} />}
visual={
<ContextItem.Visual
visual={isDark ? ZendeskWhiteLogo : ZendeskLogo}
/>
}
action={
<div className="relative">
<SliderToggle
Expand Down

0 comments on commit e4c5e52

Please sign in to comment.