mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-25 22:09:36 +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
|
@ -6,3 +6,21 @@
|
|||
color: var(--color-accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.messageCenter {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: baseline;
|
||||
color: var(--color-primary);
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.messageCenter a,
|
||||
.messageCenter span {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.messageCenter a:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
|
@ -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