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 cf60d99
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,7 +1,11 @@
<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";
library.add(faAngleDoubleDown, faAngleDoubleUp);
interface Props {
h1?: boolean;
h2?: boolean;
Expand All @@ -19,12 +23,14 @@ interface Props {
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 cf60d99

Please sign in to comment.