mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2025-06-11 18:43:22 +02:00
Fix jslint
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { StyledCanvas } from './styled';
|
||||
|
||||
const Canvas = () => (
|
||||
const Canvas = (): React.ReactElement => (
|
||||
<StyledCanvas>canvas</StyledCanvas>
|
||||
);
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { StyledFooter } from './styled';
|
||||
|
||||
const Footer = () => (
|
||||
const Footer = (): React.ReactElement => (
|
||||
<StyledFooter>footer</StyledFooter>
|
||||
);
|
||||
|
||||
|
@ -4,7 +4,7 @@ import TopBar from '../top-bar';
|
||||
import Canvas from '../canvas';
|
||||
import { StyledFrame } from './styled';
|
||||
|
||||
const Frame = () => (
|
||||
const Frame = (): React.ReactElement => (
|
||||
<StyledFrame>
|
||||
<TopBar />
|
||||
<Canvas />
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import { StyledTopBar } from './styled'
|
||||
|
||||
const TopBar = () => (
|
||||
const TopBar = ():React.ReactElement => (
|
||||
<StyledTopBar>top bar</StyledTopBar>
|
||||
);
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
const unit = 4; // pixels
|
||||
|
||||
export const XS = '4px';
|
||||
@ -6,4 +7,4 @@ export const M = '16px';
|
||||
export const L = '24px';
|
||||
export const XL = '24px';
|
||||
|
||||
export const times = (n: number) => `${unit * n}px`;
|
||||
export const times = (n: number):string => `${unit * n}px`;
|
||||
|
Reference in New Issue
Block a user