Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
Budget Worksheet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alfred Malone
Budget Worksheet
Commits
758b5eff
Commit
758b5eff
authored
Feb 07, 2019
by
Alfred Malone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change number format
parent
10c26f5f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
expense.js
src/components/expense.js
+1
-1
income.js
src/components/income.js
+1
-1
stats.js
src/components/stats.js
+7
-6
row.js
src/components/table/row.js
+1
-1
No files found.
src/components/expense.js
View file @
758b5eff
...
...
@@ -53,7 +53,7 @@ const Expense = props => {
<
/div
>
<
div
className
=
"p-2 bd-highlight"
>
<
div
className
=
"h4 cHeader"
>
<
strong
>
{
props
.
total
}
$
<
/strong
>
<
strong
>
$
{
props
.
total
}
<
/strong
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/components/income.js
View file @
758b5eff
...
...
@@ -53,7 +53,7 @@ const Income = props => {
<
/div
>
<
div
className
=
"p-2 bd-highlight"
>
<
div
className
=
"h4 cHeader"
>
<
strong
>
{
props
.
total
}
$
<
/strong
>
<
strong
>
$
{
props
.
total
}
<
/strong
>
<
/div
>
<
/div
>
<
/div
>
...
...
src/components/stats.js
View file @
758b5eff
...
...
@@ -2,24 +2,25 @@ import React from "react";
import
{
connect
}
from
"react-redux"
;
const
Stats
=
props
=>
{
function
amtLeft
()
{
const
amtLeft
=
()
=>
{
let
income
=
props
.
income
;
let
expense
=
props
.
expense
;
return
income
-
expense
;
}
let
amtLeft
=
income
-
expense
;
return
amtLeft
.
toFixed
(
2
);
};
return
(
<
div
className
=
"d-flex justify-content-center text-center"
>
<
div
className
=
"m-2"
>
<
strong
>
Total
Income
<
/strong
>
<
p
>
{
props
.
income
}
$
<
/p
>
<
p
>
$
{
props
.
income
}
<
/p
>
<
/div
>
<
div
className
=
"m-2"
>
<
strong
>
Total
Expenses
<
/strong
>
<
p
>
{
props
.
expense
}
$
<
/p
>
<
p
>
$
{
props
.
expense
}
<
/p
>
<
/div
>
<
div
className
=
"m-2"
>
<
strong
>
Amount
Left
<
/strong
>
<
p
>
{
amtLeft
()}
$
<
/p
>
<
p
>
$
{
amtLeft
()}
<
/p
>
<
/div
>
<
/div
>
);
...
...
src/components/table/row.js
View file @
758b5eff
...
...
@@ -45,7 +45,7 @@ const Row = props => {
*/
}
<
/div
>
<
/td
>
<
td
className
=
"d-flex justify-content-end"
>
{
props
.
value
}
$
<
/td
>
<
td
className
=
"d-flex justify-content-end"
>
$
{
props
.
value
}
<
/td
>
<
/tr
>
);
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment