mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-29 06:15:29 -04:00
Replace document bar with sidebar (#937)
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
586969f368
commit
0627e0f551
54 changed files with 1067 additions and 604 deletions
|
@ -16,7 +16,7 @@ import { PermissionList } from './permission-list'
|
|||
|
||||
export interface PermissionsModalProps {
|
||||
show: boolean,
|
||||
onChangeShow: (newShow: boolean) => void
|
||||
onHide: () => void
|
||||
}
|
||||
|
||||
export interface Principal {
|
||||
|
@ -59,7 +59,7 @@ const permissionsApiResponse: NotePermissions = {
|
|||
}]
|
||||
}
|
||||
|
||||
export const PermissionModal: React.FC<PermissionsModalProps> = ({ show, onChangeShow }) => {
|
||||
export const PermissionModal: React.FC<PermissionsModalProps> = ({ show, onHide }) => {
|
||||
useTranslation()
|
||||
const [error, setError] = useState(false)
|
||||
const [userList, setUserList] = useState<Principal[]>([])
|
||||
|
@ -123,7 +123,7 @@ export const PermissionModal: React.FC<PermissionsModalProps> = ({ show, onChang
|
|||
return (
|
||||
<CommonModal
|
||||
show={show}
|
||||
onHide={() => onChangeShow(false)}
|
||||
onHide={onHide}
|
||||
closeButton={true}
|
||||
titleI18nKey={'editor.modal.permissions.title'}>
|
||||
<Modal.Body>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue