Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
lezaf committed Feb 8, 2025
1 parent 9a7ed46 commit c2c7898
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
9 changes: 0 additions & 9 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,12 @@ header {
margin-bottom: 2rem;
}
.logo {
display: block;
margin: 0 auto 2rem;
}
@media (min-width: 1024px) {
header {
display: flex;
place-items: center;
}
.logo {
margin: 0 2rem 0 0;
}
header .wrapper {
display: flex;
flex-direction: column;
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,4 @@ a,
display: flex;
place-items: center;
}

/* #app {
display: grid;
grid-template-columns: 1fr 1fr;
padding: 0 2rem;
} */
}
3 changes: 1 addition & 2 deletions frontend/src/components/TaxForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import TaxFormFields from "./TaxFormFields.vue";
const props = defineProps(["answer", "isLoading"]);
const emit = defineEmits(["update:answer", "update:isLoading"]);
// Reactive variables for form inputs
const taxData = ref({
income: null,
expenses: null,
Expand All @@ -19,7 +18,7 @@ const errorMsg = ref({
propertiesNum: "",
});
// Form validation function
// Form validation
const validateForm = () => {
if (taxData.value.income < 0) {
errorMsg.value.income = "Income cannot be negative!";
Expand Down
8 changes: 0 additions & 8 deletions frontend/src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ const router = createRouter({
name: "home",
component: HomeView,
},
// {
// path: "/about",
// name: "about",
// // route level code-splitting
// // this generates a separate chunk (About.[hash].js) for this route
// // which is lazy-loaded when the route is visited.
// component: () => import("../views/AboutView.vue"),
// },
],
});

Expand Down

0 comments on commit c2c7898

Please # to comment.