Skip to content

Commit d97d3f3

Browse files
committed
use project type
1 parent 956e9af commit d97d3f3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/sentry/static/sentry/app/types/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ export type Project = {
99
id: string;
1010
slug: string;
1111
isMember: boolean;
12+
13+
isBookmarked?: boolean;
1214
};
1315

1416
// This type is incomplete

src/sentry/static/sentry/app/utils.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _ from 'lodash';
2+
import {Project} from 'app/types/index';
23

34
function arrayIsEqual(arr?: any[], other?: any[], deep?: boolean): boolean {
45
// if the other array is a falsy value, return
@@ -198,11 +199,6 @@ export function extractMultilineFields(value: string): Array<string> {
198199
.filter(f => f !== '');
199200
}
200201

201-
interface Project {
202-
isBookmarked: boolean;
203-
slug: string;
204-
}
205-
206202
function projectDisplayCompare(a: Project, b: Project): number {
207203
if (a.isBookmarked !== b.isBookmarked) {
208204
return a.isBookmarked ? -1 : 1;

0 commit comments

Comments
 (0)