Skip to content

Commit

Permalink
Fix UI
Browse files Browse the repository at this point in the history
  • Loading branch information
LASER-Yi committed Apr 4, 2022
1 parent 189e222 commit d99871e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/components/SalarySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { FiRefreshCw } from "react-icons/fi";

const minSalary = 10000;
const maxSalary = 1000000;
const salaryCount = 100;
const salaryCount = 104;

function generateSalary(): number {
return Math.floor(Math.random() * (maxSalary - minSalary)) + minSalary;
Expand All @@ -28,9 +28,6 @@ const SalarySelector: FunctionComponent<Props> = ({ onChange }) => {

return (
<Group grow direction="column">
<Button onClick={regenerate} leftIcon={<FiRefreshCw></FiRefreshCw>}>
{t("regenerate-btn")}
</Button>
<Chips
size="xs"
radius="sm"
Expand All @@ -49,7 +46,10 @@ const SalarySelector: FunctionComponent<Props> = ({ onChange }) => {
{salary}
</Chip>
))}
</Chips>
</Chips>{" "}
<Button onClick={regenerate} leftIcon={<FiRefreshCw></FiRefreshCw>}>
{t("regenerate-btn")}
</Button>
</Group>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Visualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Visualizer: FunctionComponent = () => {
></Progress>
<Space h="xl"></Space>
<Text>
{t("estimated-salary-desc")} {salaryPerDay} {currency}
{t("estimated-salary-desc")} {salaryPerDay.toFixed(2)} {currency}
</Text>
<Text>
{t("total-collected-desc")} {totalCollectedMoney.toFixed(2)} {currency}
Expand Down

0 comments on commit d99871e

Please sign in to comment.