From 1dc3d3ba5704820d62a0e6e19bf5193bfb347c9b Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Thu, 21 Dec 2017 01:31:29 -0500 Subject: [PATCH] var to let --- src/components/Tab1.tsx | 4 ++-- src/components/TabNav.tsx | 4 ++-- src/containers/Edit.tsx | 10 +++++----- src/containers/Login.tsx | 2 +- src/startup/firebase.ts | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/Tab1.tsx b/src/components/Tab1.tsx index 3ae73f7..edcb4b8 100644 --- a/src/components/Tab1.tsx +++ b/src/components/Tab1.tsx @@ -6,7 +6,7 @@ import googlecode from "react-syntax-highlighter/styles/hljs/googlecode"; let exampleText = ` void Main() { - var next5Friday13 = DateTime.Today + let next5Friday13 = DateTime.Today .Recurse(a=>a.AddDays(1)) .Where(a=>a.Day == 13 && a.DayOfWeek == DayOfWeek.Friday).Take(5); @@ -15,7 +15,7 @@ public static class Extension { public static IEnumerable Recurse(this T obj, Func action) { - var local = obj; + let local = obj; while(true) { local = action(local); diff --git a/src/components/TabNav.tsx b/src/components/TabNav.tsx index 2f485ba..7968bae 100644 --- a/src/components/TabNav.tsx +++ b/src/components/TabNav.tsx @@ -22,8 +22,8 @@ export class TabNav extends React.Component { } } render() { - var plzLogin =

Please login, yo

- var editor = + let plzLogin =

Please login, yo

+ let editor = return (