Skip to content

Commit

Permalink
feat: register used stepper icons
Browse files Browse the repository at this point in the history
  • Loading branch information
tewshi committed Jul 6, 2023
1 parent e2dd23a commit 2fd6bbf
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/composables/icons.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
import { type GeneratedIcon } from '@/types/icons';
import {
RiAlertFill,
RiCheckLine,
RiCheckboxBlankLine,
RiCheckboxCircleFill,
RiCheckboxFill,
RiCheckboxIndeterminateFill,
} from '../all-icons';
RiErrorWarningFill,
RiInformationFill,
} from '@/all-icons';

export const useIcons = createGlobalState(() => {
const requiredIcons: GeneratedIcon[] = [
RiCheckboxFill,
RiCheckboxCircleFill,
RiCheckboxIndeterminateFill,
RiCheckboxBlankLine,
RiCheckLine,
RiErrorWarningFill,
RiAlertFill,
RiInformationFill,
];

const registeredIcons: Ref<Record<string, string>> = ref({});
Expand Down

0 comments on commit 2fd6bbf

Please sign in to comment.