Add dummy data for testing in useRecommendedChannels.
This commit is contained in:
parent
6c127d70c8
commit
6f4e05945b
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue