Skip to content

Commit 9d8d591

Browse files
TschontiIsti01
authored andcommitted
use brand color for news buttons
1 parent e4fdece commit 9d8d591

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

frontend/src/pages/home/home.page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const HomePage = () => {
6868
<NewsListItem news={n} fontSize="xl" useLink={config?.components.news.showDetails} key={n.title + n.timestamp} />
6969
))}
7070
</Grid>
71-
<LinkButton mt={5} href={AbsolutePaths.NEWS}>
71+
<LinkButton colorScheme="brand" mt={5} href={AbsolutePaths.NEWS}>
7272
Összes hír
7373
</LinkButton>
7474
</>

frontend/src/pages/news/components/News.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Markdown from '../../../common-components/Markdown'
55
import { getCdnUrl, stringifyTimeStamp } from '../../../util/core-functions.util'
66
import { AbsolutePaths } from '../../../util/paths'
77
import { NewsArticleView } from '../../../util/views/news.view'
8+
import { FaArrowLeft } from 'react-icons/fa'
89

910
interface NewsProps {
1011
news: NewsArticleView
@@ -32,7 +33,9 @@ const News = ({ news }: NewsProps) => {
3233
)}
3334
<Markdown text={news.content} />
3435
<Link to={AbsolutePaths.NEWS}>
35-
<Button mt={4}>Vissza a hírekhez</Button>
36+
<Button leftIcon={<FaArrowLeft />} colorScheme="brand" mt={4}>
37+
Vissza a hírekhez
38+
</Button>
3639
</Link>
3740
</>
3841
)

0 commit comments

Comments
 (0)