Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/features/channel/components/channel-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const ChannelCard = (props: ChannelCardProps) => {
<Card className="flex flex-row justify-between p-4">
<div className="flex items-center gap-3">
<div className="flex h-10 w-10 items-center justify-center rounded-md bg-secondary border border-border">
{getChannelIcon(data.provider)}
{getChannelIcon(data.provider, "h-6 w-6")}
</div>
<div
className={`h-2 w-2 rounded-full ${data.enabled ? "bg-green-600" : "bg-muted"}`}
Expand Down
6 changes: 3 additions & 3 deletions src/features/channel/components/channel-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ export const ChannelForm = ({onSuccessAction, onCancelAction, organization, defa
)}
<div
className={cn(
"h-10 w-10 rounded-full flex items-center justify-center transition-colors",
"h-14 w-14 rounded-full flex items-center justify-center transition-colors",
type.preview
? "bg-muted"
: "bg-accent text-accent-foreground"
)}
>
<Icon
className={cn(
"h-6 w-6",
"h-8 w-8",
type.preview ? "text-muted-foreground" : "text-foreground"
)}
/>
Expand Down Expand Up @@ -184,7 +184,7 @@ export const ChannelForm = ({onSuccessAction, onCancelAction, organization, defa
{selectedProviderDetails && (
<div
className="h-10 w-10 bg-background rounded-full flex items-center justify-center border border-border shadow-sm">
<selectedProviderDetails.icon className="h-5 w-5"/>
<selectedProviderDetails.icon className="h-6 w-6"/>
</div>
)}
<div className="flex-1">
Expand Down
4 changes: 2 additions & 2 deletions src/features/channel/components/channels-helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ export const providerIcons: ProviderIconTypes[] = [
];


export const getChannelIcon = (type: string) => {
export const getChannelIcon = (type: string, className = "h-4 w-4") => {
const Icon = providerIcons.find((t) => t.value === type)?.icon
return Icon ? <Icon className="h-4 w-4"/> : null
return Icon ? <Icon className={className}/> : null
}


Expand Down
2 changes: 1 addition & 1 deletion src/features/onboarding/steps/step-notifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const StepNotifier = () => {
}`}
>
<div className="size-9 rounded-md border bg-muted/50 shadow-sm flex items-center justify-center shrink-0">
<Icon className="size-4" />
<Icon className="size-6" />
</div>
<span className="flex-1 text-left">{provider.label}</span>
{isConfigured && (
Expand Down
2 changes: 1 addition & 1 deletion src/features/onboarding/steps/step-storage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export const StepStorage = () => {
}`}
>
<div className="size-9 rounded-md border bg-muted/50 shadow-sm flex items-center justify-center shrink-0">
<Icon className="size-4" />
<Icon className="size-6" />
</div>
<span className="flex-1 text-left">{provider.label}</span>
{isConfigured && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const columns: ColumnDef<NotificationLogWithRelations>[] = [
return (
<div className="flex items-center gap-2">
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-secondary border border-border shrink-0">
{getChannelIcon(channel?.provider ?? "")}
{getChannelIcon(channel?.provider ?? "", "h-6 w-6")}
</div>
</div>
);
Expand Down
Loading