Skip to content

Commit

Permalink
bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
zomco committed Aug 20, 2024
1 parent 9fb0690 commit 20a94db
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 22 deletions.
34 changes: 17 additions & 17 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 17 additions & 4 deletions app/install-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,25 @@ import {
Triangle,
Turtle,
} from "lucide-react"
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group"
import { Bold, Italic, Underline } from "lucide-react"
import {ToggleGroup, ToggleGroupItem} from "@/components/ui/toggle-group"
import {Bold, Italic, Underline} from "lucide-react"
import Releases from './release.json';

const radars: ManiFestInfo[] = Releases.values.map(radar => ({ name: radar.name, values: radar.values }));
declare global {
namespace JSX {
interface IntrinsicElements {
'esp-web-install-button': any;
}
}
}

const radars: ManiFestInfo[] = Releases.values.map(radar => ({
name: radar.name,
desc: radar.desc,
values: radar.values
}));


export default function InstallButton() {
const [versions, updateVersions] = useState<ManiFestInfo[]>([]);
const [models, updateModels] = useState<ManiFestInfo[]>([]);
Expand Down Expand Up @@ -124,7 +137,7 @@ export default function InstallButton() {
id="version"
className="items-start [&_[data-description]]:hidden"
>
<SelectValue placeholder="Select a version" />
<SelectValue placeholder="Select a version"/>
</SelectTrigger>
<SelectContent>
{
Expand Down
3 changes: 2 additions & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

interface ManiFestInfo {
name: string;
desc: string;
values: ManiFestInfo[];
values: any[];
}

0 comments on commit 20a94db

Please sign in to comment.