Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmfern committed Jan 15, 2025
1 parent b6cea69 commit a96b872
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/react-email/src/app/preview/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export const dynamicParams = true;

export const dynamic = 'force-dynamic';

export type PreviewParams = {
export interface PreviewParams {
slug: string[];
};
}

const Page = async ({
params: paramsPromise,
Expand Down
10 changes: 5 additions & 5 deletions packages/react-email/src/components/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ const SidebarTabTrigger = ({
</Tabs.Trigger>
</Tooltip.Trigger>
<Tooltip.Content side="bottom">
{disabled
? 'Select a file first to use this feature'
: tabValue === 'link-checker'
? 'Link Checker'
: 'File Explorer'}
{disabled ? 'Select a file first to use this feature' : null}

{!disabled && tabValue === 'link-checker' ? 'Link Checker' : null}

{!disabled && tabValue === 'file-tree' ? 'File explorer' : null}
</Tooltip.Content>
</Tooltip>
</Tooltip.Provider>
Expand Down

0 comments on commit a96b872

Please sign in to comment.