Skip to content

Commit fa39a7a

Browse files
authored
preserve style of time row in player and map links (#60)
1 parent 5ddbb46 commit fa39a7a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/utils/timeLinks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { Time } from "@/types/Time";
22

33
const playerLink = function(time : Time) {
4-
return `/players/${time.steamid}/`;
4+
return `/players/${time.steamid}/?style=${time.style}`;
55
};
66
const mapLink = function(time : Time) {
7-
return `/maps/${time.map}/`
7+
return `/maps/${time.map}/?style=${time.style}`;
88
}
99
const recordLink = function(time : Time) {
1010
return `/run/${time._id}/`;
1111
}
1212

13-
export default {playerLink, mapLink, recordLink};
13+
export default {playerLink, mapLink, recordLink};

0 commit comments

Comments
 (0)