mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
migrate ui-components from flow to typescript
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import DiffFile from './DiffFile';
|
||||
import { DiffObjectProps, File } from './DiffTypes';
|
||||
import React from "react";
|
||||
import DiffFile from "./DiffFile";
|
||||
import { DiffObjectProps, File } from "./DiffTypes";
|
||||
|
||||
type Props = DiffObjectProps & {
|
||||
diff: File[];
|
||||
@@ -8,8 +8,8 @@ type Props = DiffObjectProps & {
|
||||
};
|
||||
|
||||
class Diff extends React.Component<Props> {
|
||||
static defaultProps = {
|
||||
sideBySide: false,
|
||||
static defaultProps: Partial<Props> = {
|
||||
sideBySide: false
|
||||
};
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user