Skip to content

Commit

Permalink
Minor fixes to Heading component; correct imports and default props.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Apr 30, 2024
1 parent fd4165f commit 24ff69a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/components/Common/Heading.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<script setup lang="ts">
import { library } from "@fortawesome/fontawesome-svg-core";
import { faAngleDoubleDown, faAngleDoubleUp } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
import { computed } from "vue";
Expand All @@ -17,14 +19,18 @@ interface Props {
collapse?: "open" | "closed" | "none";
}
library.add(faAngleDoubleDown, faAngleDoubleUp);
const props = withDefaults(defineProps<Props>(), {
collapse: "none",
icon: "",
size: "lg",
});
defineEmits(["click"]);
const sizeClass = computed(() => {
return `h-${props.size ?? "lg"}`;
return `h-${props.size}`;
});
const collapsible = computed(() => {
Expand Down

0 comments on commit 24ff69a

Please sign in to comment.