feat(insta): swap google_trends source for youtube_trending (Google Trends API 폐기 대응)
This commit is contained in:
@@ -181,7 +181,7 @@ function ExternalTrendsPanel({ onCreateSlate }) {
|
|||||||
const load = useCallback(async () => {
|
const load = useCallback(async () => {
|
||||||
const [n, g] = await Promise.all([
|
const [n, g] = await Promise.all([
|
||||||
getInstaTrends({ source: 'naver_popular', days: 2 }),
|
getInstaTrends({ source: 'naver_popular', days: 2 }),
|
||||||
getInstaTrends({ source: 'google_trends', days: 2 }),
|
getInstaTrends({ source: 'youtube_trending', days: 2 }),
|
||||||
]);
|
]);
|
||||||
setNaver(n.items || []);
|
setNaver(n.items || []);
|
||||||
setGoogle(g.items || []);
|
setGoogle(g.items || []);
|
||||||
@@ -254,7 +254,7 @@ function ExternalTrendsPanel({ onCreateSlate }) {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div className="ic-trends__col">
|
<div className="ic-trends__col">
|
||||||
<h4>🌐 Google Trends</h4>
|
<h4>📺 YouTube 인기</h4>
|
||||||
{google.length === 0 && <p className="ic-empty">없음</p>}
|
{google.length === 0 && <p className="ic-empty">없음</p>}
|
||||||
{google.map(renderRow)}
|
{google.map(renderRow)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user