mirror of
https://github.com/SomboChea/ui
synced 2024-05-19 09:51:36 +07:00
d1ce82854a
* refactor: replaced class by func.comp * refactor: replacing jest test by react-testing-library * refactor: added test todos * feat: added more unit tests * fix: fixed tooltip import * fix: fixed test * fix: fixed typo * fix: fixed imports
19 lines
344 B
TypeScript
19 lines
344 B
TypeScript
import React from 'react';
|
|
|
|
import Label from '../Label';
|
|
|
|
import { Greetings } from './styles';
|
|
|
|
interface Props {
|
|
username: string;
|
|
}
|
|
|
|
const HeaderGreetings: React.FC<Props> = ({ username }) => (
|
|
<>
|
|
<Greetings>{'Hi,'}</Greetings>
|
|
<Label capitalize={true} text={username} weight="bold" />
|
|
</>
|
|
);
|
|
|
|
export default HeaderGreetings;
|