mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Refactor CSS files and structure. Also refactors some html and React components for a smarter use of CSS classes.
20 lines
451 B
TypeScript
20 lines
451 B
TypeScript
import * as React from 'react';
|
|
|
|
import { TitleText, UppercaseText } from '../common/CustomTexts';
|
|
|
|
interface Props {
|
|
id: number;
|
|
title: string;
|
|
boardName: string;
|
|
}
|
|
|
|
const PostListItem = ({id, title, boardName}: Props) => (
|
|
<a href={`/posts/${id}`} className="postLink">
|
|
<div className="postListItem">
|
|
<TitleText>{title}</TitleText>
|
|
<UppercaseText>{boardName}</UppercaseText>
|
|
</div>
|
|
</a>
|
|
);
|
|
|
|
export default PostListItem; |