Skip to content

Commit 1942f09

Browse files
committed
Refactor FontAwesome AdminHome Heading to use icon props directly, fixing types (and modernizing)
1 parent 7ccdbbb commit 1942f09

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

client/src/components/admin/AdminHome.vue

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
keep your Galaxy in best shape.
1010
</p>
1111

12-
<Heading h2 icon="fa-server" size="md">Server</Heading>
12+
<Heading h2 :icon="faServer" size="md">Server</Heading>
1313
<ul>
1414
<li>
1515
<strong>
@@ -57,7 +57,7 @@
5757
</li>
5858
</ul>
5959

60-
<Heading h2 icon="fa-user" size="md">User Management</Heading>
60+
<Heading h2 :icon="faUser" size="md">User Management</Heading>
6161
<ul>
6262
<li>
6363
<strong>
@@ -95,7 +95,7 @@
9595
</li>
9696
</ul>
9797

98-
<Heading h2 icon="fa-wrench" size="md">Tool Management</Heading>
98+
<Heading h2 :icon="faWrench" size="md">Tool Management</Heading>
9999
<ul>
100100
<li>
101101
<strong>
@@ -135,16 +135,13 @@
135135
</template>
136136

137137
<script setup lang="ts">
138-
import { library } from "@fortawesome/fontawesome-svg-core";
139138
import { faServer, faUser, faWrench } from "@fortawesome/free-solid-svg-icons";
140139
import { computed } from "vue";
141140
142141
import { useConfig } from "@/composables/config";
143142
144143
import Heading from "@/components/Common/Heading.vue";
145144
146-
library.add(faServer, faUser, faWrench);
147-
148145
const { config, isConfigLoaded } = useConfig();
149146
150147
const isToolshedInstalled = computed(() => {

0 commit comments

Comments
 (0)