Skip to content

Commit

Permalink
Rewrite utils/url by ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ofk committed Oct 11, 2019
1 parent f8fb286 commit b379298
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/src/utils/url.js

This file was deleted.

6 changes: 6 additions & 0 deletions frontend/src/utils/url.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { ProjectId, ResultId } from '../store/types';

export const urlForPlot = (projectId: ProjectId): string => `/projects/${projectId}`;

export const urlForResultDetail = (projectId: ProjectId, resultId: ResultId): string =>
`/projects/${projectId}/results/${resultId}`;

0 comments on commit b379298

Please sign in to comment.