migrate ui-components from flow to typescript

This commit is contained in:
Sebastian Sdorra
2019-10-20 16:59:02 +02:00
parent c41efbdc4f
commit f49e17a3a7
151 changed files with 2039 additions and 25265 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { withContextPath } from './urls';
import React from "react";
import { withContextPath } from "./urls";
type Props = {
src: string;
@@ -10,7 +10,7 @@ type Props = {
class Image extends React.Component<Props> {
createImageSrc = () => {
const { src } = this.props;
if (src.startsWith('http')) {
if (src.startsWith("http")) {
return src;
}
return withContextPath(src);