Skip to content

Commit 0badc03

Browse files
committed
Added types for navigation
1 parent b4b58a4 commit 0badc03

25 files changed

+180
-76
lines changed

constants/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const API = {
22
QUOTE_URL: 'http://api.forismatic.com/api/1.0',
33
IMAGE_URL: 'https://picsum.photos'
4-
}
4+
} as const;
55

6-
export { API };
6+
export { API };

constants/colors.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
const COLORS_LIGHT = {
2-
appBackground: "#EEECEC",
3-
primary900: "#00146D",
4-
primary300: "#6d78bd",
5-
primary200: "#969ecf",
6-
primary100: "#B0B7E5",
7-
secondary800: "#6d0014",
8-
grey600: "#757575",
9-
grey300: "#BDBDBD",
10-
fontMain: "#000000",
11-
fontInverse: "#FFFFFF",
2+
APP_BACKGROUND: "#EEECEC",
3+
PRIMARY__900: "#00146D",
4+
PRIMARY_300: "#6d78bd",
5+
PRIMARY_200: "#969ecf",
6+
PRIMARY_100: "#B0B7E5",
7+
SECONDARY_800: "#6d0014",
8+
GREY__600: "#757575",
9+
GREY_300: "#BDBDBD",
10+
FONT_MAIN: "#000000",
11+
FONT_INVERSE: "#FFFFFF",
1212
} as const;
1313

1414
const COLORS_DARK = {
15-
appBackground: "#262626",
16-
primary900: "#BA68C8",
17-
primary300: "#e1bee7",
18-
primary200: "#514951",
19-
primary100: "#351401",
20-
secondary800: "#c86876",
21-
grey300: "#757575",
22-
grey600: "#BDBDBD",
23-
fontInverse: "#000000",
24-
fontMain: "#FFFFFF",
15+
APP_BACKGROUND: "#262626",
16+
PRIMARY_900: "#BA68C8",
17+
PRIMARY_300: "#e1bee7",
18+
PRIMARY_200: "#514951",
19+
PRIMARY_100: "#351401",
20+
SECONDARY_800: "#c86876",
21+
GREY_300: "#757575",
22+
GREY_600: "#BDBDBD",
23+
FONT_INVERSE: "#000000",
24+
FONT_MAIN: "#FFFFFF",
2525
} as const;
2626

2727
export { COLORS_DARK, COLORS_LIGHT };

constants/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { API } from './api';
22
export { COLORS_DARK, COLORS_LIGHT } from './colors';
3+
export { ROUTE_NAME } from './routes';

constants/routes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const ROUTE_NAME = {
2+
DASHBOARD: 'Dashboard',
3+
SETTINGS: 'Settings',
4+
ADD_INSPIRATION: 'AddInspiration',
5+
BOTTOM_TABS_NAVIGATOR: 'BottomTabsNavigator',
6+
} as const;
7+
8+
export { ROUTE_NAME };

contexts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { ThemeProvider, ThemeContext } from './theme-context';
1+
export { ThemeProvider, ThemeContext } from './theme-context';

contexts/theme-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ const ThemeProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
2828
);
2929
};
3030

31-
export { ThemeProvider, ThemeContext };
31+
export { ThemeProvider, ThemeContext };

helpers/get-random-number.helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ const getRandomNumber = (min?: number, max?: number): number => {
66
return Math.floor(Math.random() * 100);
77
}
88

9-
export { getRandomNumber };
9+
export { getRandomNumber };

helpers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { getRandomNumber } from './get-random-number.helper';
1+
export { getRandomNumber } from './get-random-number.helper';

hooks/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { useTheme } from './use-theme';
1+
export { useTheme } from './use-theme';

hooks/use-theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ const useTheme = () => {
88
return context;
99
};
1010

11-
export { useTheme };
11+
export { useTheme };

0 commit comments

Comments
 (0)