Skip to content

Commit bbca1b6

Browse files
committed
migration
1 parent 8aa3044 commit bbca1b6

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// @flow
2-
3-
export const appConfig = {
1+
export const appConfig = Object.freeze({
42
DEV_MODE: true, // block fetch
53

64
// sw path
75
sw: {
86
path: 'public/assets/sw.js',
97
},
10-
};
8+
});
119

1210
export default appConfig;

front/src/config/navigation.js renamed to front/src/config/navigation.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
1-
// @flow
2-
3-
// #flow types
1+
// #region types
42
export type Link = {
5-
label: string,
6-
link: string,
7-
view?: string,
8-
isRouteBtn?: boolean,
3+
label: string;
4+
link: string;
5+
view?: string;
6+
isRouteBtn?: boolean;
97
};
108

119
export type Navigation = {
12-
brand: string,
13-
leftLinks: Array<Link>,
14-
rightLinks: Array<Link>,
10+
brand: string;
11+
leftLinks: Array<Link>;
12+
rightLinks: Array<Link>;
1513
};
1614
// #endregion
1715

18-
const navigation = {
16+
const navigation = Object.freeze({
1917
brand: 'React Bootstrap Starter',
2018
leftLinks: [],
2119
rightLinks: [
@@ -36,6 +34,6 @@ const navigation = {
3634
isRouteBtn: true,
3735
},
3836
],
39-
};
37+
});
4038

4139
export default navigation;

0 commit comments

Comments
 (0)