Skip to content

Commit 3bea628

Browse files
authored
add search by date (codesandbox#1914)
1 parent 8e83da5 commit 3bea628

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/app/src/app/pages/Search/Filters/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function Filters() {
1414
items={[
1515
{ value: ALGOLIA_DEFAULT_INDEX, label: 'Views' },
1616
{ value: `${ALGOLIA_DEFAULT_INDEX}_likes`, label: 'Likes' },
17+
{ value: `${ALGOLIA_DEFAULT_INDEX}_date`, label: 'Date' },
1718
]}
1819
defaultRefinement={ALGOLIA_DEFAULT_INDEX}
1920
/>

packages/app/src/app/pages/Search/Results/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Centered from '@codesandbox/common/lib/components/flex/Centered';
55
import SandboxCard from '@codesandbox/common/lib/components/SandboxCard';
66
import { sandboxUrl } from '@codesandbox/common/lib/utils/url-generator';
77
import Margin from '@codesandbox/common/lib/components/spacing/Margin';
8-
import getSandboxName from '@codesandbox/common/lib/utils/get-sandbox-name';
8+
import { getSandboxName } from '@codesandbox/common/lib/utils/get-sandbox-name';
99

1010
import ResultInfo from '../ResultInfo';
1111
import { Container } from './elements';

0 commit comments

Comments
 (0)