Skip to content

Commit

Permalink
Feat: add projecting in progress text (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamy authored Jul 11, 2024
1 parent feccee5 commit adc225e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/toolbar/TextureToolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useAppStore } from "@/store";
import { PackDimensions, PackEntry } from "@/store/computed";
import { Button } from "@/styles";
import { styled } from "@macaron-css/solid";
import { Show } from "solid-js";

const Toolbar = styled("div", {
base: {
Expand All @@ -21,8 +22,14 @@ const GapInputElement = styled("input", {
},
});

const Warning = styled("div", {
base: {
fontStyle: "italic",
},
});

export function TextureToolbar() {
const [data] = useAppStore().computed;
const [data, isLoading] = useAppStore().computed;

return (
<Toolbar>
Expand All @@ -36,6 +43,9 @@ export function TextureToolbar() {
>
Download
</Button>
<Show when={isLoading()}>
<Warning>Projecting...</Warning>
</Show>
</Toolbar>
);
}
Expand Down

0 comments on commit adc225e

Please sign in to comment.