Skip to content

Commit d1fd8fc

Browse files
committed
style fixes for windows
1 parent 7dfd637 commit d1fd8fc

File tree

9 files changed

+10
-8
lines changed

9 files changed

+10
-8
lines changed
File renamed without changes.

lib/components/Start/Welcome/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
var React = require('react');
33
var path_1 = require('path');
44
var index_1 = require('../../index');
5-
var imagePath = path_1.resolve(__dirname, '../../../../', 'styles', 'coderoad.jpg');
5+
var imagePath = path_1.join(__dirname, '../../../../', 'img', 'coderoad.jpg');
66
var styles = {
77
backgroundImage: "url(https://github.com/""%3C/span%3E%20%3Cspan%20class=pl-c1%3E+%3C/span%3E%20%3Cspan%20class=pl-s1%3EimagePath%3C/span%3E%20%3Cspan%20class=pl-c1%3E+%3C/span%3E%20%3Cspan%20class=pl-s%3E"/")",
88
backgroundRepeat: 'no-repeat',

lib/components/Tutorials/LoadTutorials/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var LoadTutorials = (function (_super) {
2323
_super.apply(this, arguments);
2424
}
2525
LoadTutorials.prototype.render = function () {
26-
return (React.createElement(FlatButton_1.default, {style: { margin: '0 90px' }, label: 'Check for Tutorials', secondary: true, onTouchTap: this.props.tutorialsFind}));
26+
return (React.createElement(FlatButton_1.default, {label: 'Check for Tutorials', secondary: true, onTouchTap: this.props.tutorialsFind}));
2727
};
2828
LoadTutorials = __decorate([
2929
react_redux_1.connect(null, function (dispatch) {

lib/components/Tutorials/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ var UpdateTutorial_1 = require('./UpdateTutorial');
66
var SelectTutorial_1 = require('./SelectTutorial');
77
var styles = {
88
padding: '10px',
9+
textAlign: 'center',
910
};
1011
exports.Tutorials = function (_a) {
1112
var tutorials = _a.tutorials;

src/components/Start/Welcome/index.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import * as React from 'react';
2-
import {resolve} from 'path';
2+
import {join} from 'path';
33
import {RouteButton} from '../../index';
4+
import {store} from '../../../store';
45

5-
const imagePath = resolve(
6-
__dirname, '../../../../', 'styles', 'coderoad.jpg'
6+
const imagePath = join(
7+
__dirname, '../../../../', 'img', 'coderoad.jpg'
78
);
89

910
const styles = {

src/components/Tutorials/LoadTutorials/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export class LoadTutorials extends React.Component<{
1414
render() {
1515
return (
1616
<FlatButton
17-
style={{margin: '0 90px'}}
1817
label='Check for Tutorials'
1918
secondary={true}
2019
onTouchTap={this.props.tutorialsFind}

src/components/Tutorials/SelectTutorial/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function displayName(name: string): string {
2525
};
2626
})
2727
export class SelectTutorial extends React.Component<{
28-
tutorial: CR.Tutorial, selectTutorial?: any
28+
tutorial: Tutorial.Info, selectTutorial?: any
2929
}, {}> {
3030
render() {
3131
const {tutorial, selectTutorial} = this.props;

src/components/Tutorials/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {SelectTutorial} from './SelectTutorial';
88

99
const styles = {
1010
padding: '10px',
11+
textAlign: 'center',
1112
};
1213

1314
export const Tutorials: React.StatelessComponent<{

src/typings/cr/tutorial.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
declare namespace Tutorial {
22
interface Info {
3-
title: string;
3+
name: string;
44
version: string;
55
latest?: boolean;
66
description?: string;

0 commit comments

Comments
 (0)