mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
notifications: notification settings page
This commit is contained in:
parent
d77a01d8bc
commit
7135d06673
17 changed files with 319 additions and 35 deletions
19
src/components/input/InputRow/index.tsx
Normal file
19
src/components/input/InputRow/index.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
import React, { FC, ReactNode } from 'react';
|
||||
|
||||
import classNames from 'classnames';
|
||||
|
||||
import styles from './styles.module.scss';
|
||||
|
||||
interface InputRowProps {
|
||||
className?: string;
|
||||
input?: ReactNode;
|
||||
}
|
||||
|
||||
const InputRow: FC<InputRowProps> = ({ children, input, className }) => (
|
||||
<div className={classNames(styles.row, className)}>
|
||||
<div>{children}</div>
|
||||
{!!input && <div>{input}</div>}
|
||||
</div>
|
||||
);
|
||||
|
||||
export { InputRow };
|
8
src/components/input/InputRow/styles.module.scss
Normal file
8
src/components/input/InputRow/styles.module.scss
Normal file
|
@ -0,0 +1,8 @@
|
|||
@import 'src/styles/variables';
|
||||
|
||||
.row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
row-gap: $gap;
|
||||
align-items: center;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue