diff --git a/src/ui/components/news/NewsSection.css b/src/ui/components/news/NewsSection.css index 51b386c..bf91f54 100644 --- a/src/ui/components/news/NewsSection.css +++ b/src/ui/components/news/NewsSection.css @@ -48,6 +48,8 @@ .NewsContent { overflow-y: auto; scrollbar-width: none; + + color: #fff; } .Commit { diff --git a/src/ui/components/news/NewsSection.tsx b/src/ui/components/news/NewsSection.tsx index c09cff1..eab50fb 100644 --- a/src/ui/components/news/NewsSection.tsx +++ b/src/ui/components/news/NewsSection.tsx @@ -35,9 +35,9 @@ export default class NewsSection extends React.Component { } setSelected(item: string) { - this.setState({ selected: item }) - - this.showNews() + this.setState({ selected: item }, () => { + this.showNews() + }) } async showLatestCommits() {