feat: threads provider
This commit is contained in:
parent
7bf8b4d6cc
commit
20da080ea5
|
|
@ -109,10 +109,11 @@ const ThreadsPreview: FC = (props) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default withProvider(null, ThreadsPreview, undefined, async ([firstPost, ...otherPosts]) => {
|
export default withProvider(
|
||||||
if (!firstPost.length) {
|
null,
|
||||||
return 'Instagram should have at least one media';
|
ThreadsPreview,
|
||||||
|
undefined,
|
||||||
|
async ([firstPost, ...otherPosts]) => {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
);
|
||||||
return true;
|
|
||||||
});
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue