Types for useRegisteredChannels.
This commit is contained in:
parent
4fa4f802e9
commit
06a303fc33
|
@ -1,3 +1,13 @@
|
||||||
|
/**
|
||||||
|
* Internal dependencies
|
||||||
|
*/
|
||||||
|
import { InstalledChannel } from '~/marketing/types';
|
||||||
|
|
||||||
|
type UseRegisteredChannels = {
|
||||||
|
loading: boolean;
|
||||||
|
data: Array< InstalledChannel >;
|
||||||
|
};
|
||||||
|
|
||||||
// // TODO: To be removed. This is for testing loading state.
|
// // TODO: To be removed. This is for testing loading state.
|
||||||
// export const useRegisteredChannels = () => {
|
// export const useRegisteredChannels = () => {
|
||||||
// // TODO: call API here to get data.
|
// // TODO: call API here to get data.
|
||||||
|
@ -17,7 +27,6 @@
|
||||||
// data: [
|
// data: [
|
||||||
// {
|
// {
|
||||||
// slug: 'google-listings-and-ads',
|
// slug: 'google-listings-and-ads',
|
||||||
// name: 'Google Listings and Ads',
|
|
||||||
// title: 'Google Listings and Ads',
|
// title: 'Google Listings and Ads',
|
||||||
// description:
|
// description:
|
||||||
// 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
|
// 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
|
||||||
|
@ -42,7 +51,6 @@
|
||||||
// data: [
|
// data: [
|
||||||
// {
|
// {
|
||||||
// slug: 'google-listings-and-ads',
|
// slug: 'google-listings-and-ads',
|
||||||
// name: 'Google Listings and Ads',
|
|
||||||
// title: 'Google Listings and Ads',
|
// title: 'Google Listings and Ads',
|
||||||
// description:
|
// description:
|
||||||
// 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
|
// 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
|
||||||
|
@ -59,7 +67,7 @@
|
||||||
// };
|
// };
|
||||||
|
|
||||||
// TODO: To be removed. This is for testing everything works okay.
|
// TODO: To be removed. This is for testing everything works okay.
|
||||||
export const useRegisteredChannels = () => {
|
export const useRegisteredChannels = (): UseRegisteredChannels => {
|
||||||
// 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.
|
||||||
return {
|
return {
|
||||||
|
@ -67,7 +75,6 @@ export const useRegisteredChannels = () => {
|
||||||
data: [
|
data: [
|
||||||
{
|
{
|
||||||
slug: 'google-listings-and-ads',
|
slug: 'google-listings-and-ads',
|
||||||
name: 'Google Listings and Ads',
|
|
||||||
title: 'Google Listings and Ads',
|
title: 'Google Listings and Ads',
|
||||||
description:
|
description:
|
||||||
'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
|
'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
|
||||||
|
|
Loading…
Reference in New Issue