Skip to content

Commit a98b774

Browse files
jyash97CompuIves
authored andcommitted
fix: title for showcase page (codesandbox#3009)
1 parent beaf88f commit a98b774

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/app/src/app/components/SandboxList/SandboxList.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import ForkIcon from 'react-icons/lib/go/repo-forked';
77
import { sandboxUrl } from '@codesandbox/common/lib/utils/url-generator';
88
import getIcon from '@codesandbox/common/lib/templates/icons';
99
import { SmallSandbox } from '@codesandbox/common/lib/types';
10+
import { getSandboxName } from '@codesandbox/common/lib/utils/get-sandbox-name';
1011
import { DeleteSandboxButton } from '../DeleteSandboxButton';
1112
import { PrivacyStatus } from '../PrivacyStatus';
1213
import {
@@ -62,7 +63,7 @@ export const SandboxList: React.FC<ISandboxListProps> = ({
6263
{/* We should probably use the Sandbox interface instead
6364
* of SmallSandbox
6465
// @ts-ignore */}
65-
<Link to={sandboxUrl(s)}>{s.title || s.id}</Link>
66+
<Link to={sandboxUrl(s)}>{getSandboxName(s)}</Link>
6667
<PrivacyStatus privacy={s.privacy} asIcon />
6768
</td>
6869
<td>{format(new Date(s.insertedAt), 'MMM dd, yyyy')}</td>

0 commit comments

Comments
 (0)