Fix Trending missing from columns

This commit is contained in:
Lim Chee Aun 2023-04-14 10:54:22 +08:00
parent d2d6e8b434
commit 4f577321b2

View file

@ -9,6 +9,7 @@ import List from '../pages/list';
import Mentions from '../pages/mentions'; import Mentions from '../pages/mentions';
import Notifications from '../pages/notifications'; import Notifications from '../pages/notifications';
import Public from '../pages/public'; import Public from '../pages/public';
import Trending from '../pages/trending';
import states from '../utils/states'; import states from '../utils/states';
import useTitle from '../utils/useTitle'; import useTitle from '../utils/useTitle';
@ -29,6 +30,7 @@ function Columns() {
favourites: Favourites, favourites: Favourites,
hashtag: Hashtag, hashtag: Hashtag,
mentions: Mentions, mentions: Mentions,
trending: Trending,
}[type]; }[type];
if (!Component) return null; if (!Component) return null;
return <Component {...params} />; return <Component {...params} />;