mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
Switch the base framework from Create React App to Next.JS
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a979b6ffdd
commit
77a60c6c48
361 changed files with 5130 additions and 9605 deletions
|
@ -5,12 +5,20 @@
|
|||
*/
|
||||
|
||||
import React from 'react'
|
||||
import './split-divider.scss'
|
||||
import styles from './split-divider.module.scss'
|
||||
import { cypressId } from '../../../../utils/cypress-attribute'
|
||||
|
||||
export interface SplitDividerProps {
|
||||
onGrab: () => void
|
||||
}
|
||||
|
||||
export const SplitDivider: React.FC<SplitDividerProps> = ({ onGrab }) => {
|
||||
return <div onMouseDown={() => onGrab()} onTouchStart={() => onGrab()} className={'split-divider'} />
|
||||
return (
|
||||
<div
|
||||
onMouseDown={onGrab}
|
||||
onTouchStart={onGrab}
|
||||
className={styles['split-divider']}
|
||||
{...cypressId('split-divider')}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue