Skip to content

Commit

Permalink
feat(core): PDF preview
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Oct 22, 2024
1 parent a459499 commit 946bba7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import type { ReactElement } from 'react';

export const AttachmentViewer = (): ReactElement => {
return (
<>
<div>{'Attachment Viewer'}</div>
<div>{'Attachment Viewer'}</div>
</>
);
};

export const Component = () => {
return <AttachmentViewer />;
};
4 changes: 4 additions & 0 deletions packages/frontend/core/src/desktop/workbench-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ export const workbenchRoutes = [
path: '/:pageId',
lazy: () => import('./pages/workspace/detail-page/detail-page'),
},
{
path: '/:pageId/:attachmentId',
lazy: () => import('./pages/workspace/attachment/index'),
},
{
path: '*',
lazy: () => import('./pages/404'),
Expand Down

0 comments on commit 946bba7

Please sign in to comment.