Skip to content

Commit

Permalink
Merge pull request #48 from hotosm/fix/set-base-path
Browse files Browse the repository at this point in the history
Add `setBasePath` util function to allow changing icon import path
  • Loading branch information
spwoodcock authored Aug 22, 2024
2 parents 12ad2b0 + 623dbbd commit 4573f40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Index to import all components together
// import '@hotosm/ui/components';

import { setBasePath } from '@shoelace-style/shoelace/dist/utilities/base-path.js';

// Default Shoelace exports
import SlAlert from '@shoelace-style/shoelace/dist/components/alert/alert.component.js';
import SlAnimatedImage from '@shoelace-style/shoelace/dist/components/animated-image/animated-image.component.js';
Expand Down Expand Up @@ -194,6 +196,9 @@ declare global {
}

export {
// setBasePath helper to use the UI behind proxies etc
setBasePath,
// Standard shoelace components
SlAlert,
SlAnimatedImage,
SlAnimation,
Expand Down

0 comments on commit 4573f40

Please sign in to comment.