mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-26 06:19:36 +02:00
Empty sections will be hidden from guests. Fixed temperature value rounding. Added welcome message
This commit is contained in:
parent
882f011d07
commit
d110d9b732
11 changed files with 80 additions and 71 deletions
8
client/src/components/UI/Text/Message/Message.module.css
Normal file
8
client/src/components/UI/Text/Message/Message.module.css
Normal file
|
@ -0,0 +1,8 @@
|
|||
.message {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.message a {
|
||||
color: var(--color-accent);
|
||||
font-weight: 600;
|
||||
}
|
11
client/src/components/UI/Text/Message/Message.tsx
Normal file
11
client/src/components/UI/Text/Message/Message.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { ReactNode } from 'react';
|
||||
|
||||
import classes from './Message.module.css';
|
||||
|
||||
interface Props {
|
||||
children: ReactNode;
|
||||
}
|
||||
|
||||
export const Message = ({ children }: Props): JSX.Element => {
|
||||
return <p className={classes.message}>{children}</p>;
|
||||
};
|
|
@ -12,3 +12,4 @@ export * from './Forms/InputGroup/InputGroup';
|
|||
export * from './Forms/ModalForm/ModalForm';
|
||||
export * from './Buttons/ActionButton/ActionButton';
|
||||
export * from './Buttons/Button/Button';
|
||||
export * from './Text/Message/Message';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue