Add dummy data for testing in useRecommendedChannels.

This commit is contained in:
Gan Eng Chin 2022-12-14 20:19:20 +08:00
parent 6c127d70c8
commit 6f4e05945b
No known key found for this signature in database
GPG Key ID: 94D5D972860ADB01
1 changed files with 20 additions and 0 deletions

View File

@ -8,6 +8,26 @@ type UseRecommendedChannels = {
data: Array< RecommendedChannel >; data: Array< RecommendedChannel >;
}; };
// // TODO: to be removed. This is to test for loading state.
// export const useRecommendedChannels = (): UseRecommendedChannels => {
// // TODO: call API here to get data.
// // The following are just dummy data for testing now.
// return {
// loading: true,
// data: [],
// };
// };
// // TODO: to be removed. This is to test for empty data.
// export const useRecommendedChannels = (): UseRecommendedChannels => {
// TODO: call API here to get data.
// The following are just dummy data for testing now.
// return {
// loading: false,
// data: [],
// };
// };
export const useRecommendedChannels = (): UseRecommendedChannels => { export const useRecommendedChannels = (): UseRecommendedChannels => {
// TODO: call API here to get data. // TODO: call API here to get data.
// The following are just dummy data for testing now. // The following are just dummy data for testing now.