Skip to content

Commit

Permalink
fix: switch out placeholder for UDS busy bar
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Nov 29, 2024
1 parent f1c9af2 commit c594c62
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"@heroicons/react": "^2.1.5",
"@tanstack/react-query": "^5.59.19",
"@ugrc/layer-selector": "^6.2.9",
"@ugrc/utah-design-system": "^1.13.0",
"@ugrc/tailwind-preset": "^1.1.0",
"@ugrc/utah-design-system": "^1.14.0",
"@ugrc/utilities": "^2.2.7",
"firebase": "^11.0.1",
"immer": "^10.1.1",
Expand Down
8 changes: 4 additions & 4 deletions src/components/MapContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useEffect, useRef, useState } from 'react';
import { useMap } from './hooks';

import '@ugrc/layer-selector/src/LayerSelector.css';
import { Spinner } from '@ugrc/utah-design-system';
import { BusyBar } from '@ugrc/utah-design-system';
import config from '../config';

type LayerFactory = {
Expand Down Expand Up @@ -111,9 +111,9 @@ export const MapContainer = ({
return (
<div ref={mapNode} className="size-full">
{selectorOptions?.view && <LayerSelector {...selectorOptions}></LayerSelector>}
{mapView.current && isDrawing && (
<div className="absolute left-[22px] top-[90px]">
<Spinner />
{mapView.current && (
<div className="absolute left-0 right-0 top-0">
<BusyBar busy={isDrawing} />
</div>
)}
</div>
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import ugrcPreset from '@ugrc/tailwind-preset';

/** @type {import('tailwindcss').Config} */
export default {
content: ['./node_modules/@ugrc/**/*.{tsx,jsx,js}', './index.html', './src/**/*.{tsx,jsx,js}'],
Expand Down Expand Up @@ -51,4 +53,5 @@ export default {
},
},
plugins: [],
presets: [ugrcPreset],
};

0 comments on commit c594c62

Please sign in to comment.