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
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import { ProgressBar } from '@/components/base/progress-indicators/progress-indi
import { FeaturedIcon } from '@/components/foundations/featured-icon/featured-icon';
import { cx } from '@/utils/cx';
import { FileIcon as FileTypeIcon } from '@untitledui/file-icons';

export { FileIcon } from '@untitledui/file-icons';
import {
CheckCircle,
Trash01,
Expand All @@ -37,6 +35,8 @@ import type {
} from 'react';
import { useId, useRef, useState } from 'react';

export { FileIcon } from '@untitledui/file-icons';

export const getReadableFileSize = (bytes: number): string => {
if (bytes === 0) {
return '0 KB';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const ContextCenterHeader: FC<ContextCenterHeaderProps> = ({
breadcrumbs,
title,
subtitle,
className = '',
hasPermission = true,
onCreateArticle,
onUploadFile,
Expand Down Expand Up @@ -76,7 +77,7 @@ const ContextCenterHeader: FC<ContextCenterHeaderProps> = ({
/>
)}

<Card className="tw:mb-5 tw:p-5" style={cardStyle}>
<Card className={`tw:mb-5 tw:p-5 ${className}`} style={cardStyle}>
{breadcrumbInsideCard && (
<div className="tw:mb-4">
<TitleBreadcrumb
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface ContextCenterHeaderProps {
title: string;
subtitle?: string;
hasPermission?: boolean;
className?: string;
onCreateArticle?: () => void;
onUploadFile?: () => void;
/** Replaces the default action buttons with a custom slot */
Expand Down
Loading
Loading