mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-21 04:19:37 +02:00
Changed some messages and buttons to make it easier to open bookmarks editor
This commit is contained in:
parent
2ca90a18e1
commit
068c8ab2e7
10 changed files with 76 additions and 82 deletions
|
@ -4,8 +4,11 @@ import classes from './Message.module.css';
|
|||
|
||||
interface Props {
|
||||
children: ReactNode;
|
||||
isPrimary?: boolean;
|
||||
}
|
||||
|
||||
export const Message = ({ children }: Props): JSX.Element => {
|
||||
return <p className={classes.message}>{children}</p>;
|
||||
export const Message = ({ children, isPrimary = true }: Props): JSX.Element => {
|
||||
const style = isPrimary ? classes.message : classes.messageCenter;
|
||||
|
||||
return <p className={style}>{children}</p>;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue