Skip to content

Commit

Permalink
chore(gallery): fix @39bytes comment
Browse files Browse the repository at this point in the history
  • Loading branch information
LatentDream committed Apr 24, 2024
1 parent 054fab7 commit eb0525d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ import { Separator } from "@/renderer/components/ui/separator";
import { Button } from "@/renderer/components/ui/button";
import { useImportAllSequencesInFolder } from "@/renderer/hooks/useTestSequencerProject";

type AppGalleryModalProps = {
type SequencerGalleryModalProps = {
isGalleryOpen: boolean;
setIsGalleryOpen: (open: boolean) => void;
};

export const SequencerGalleryModal = ({
isGalleryOpen,
setIsGalleryOpen,
}: AppGalleryModalProps) => {
}: SequencerGalleryModalProps) => {
const importSequence = useImportAllSequencesInFolder();

const handleSequenceLoad = (relativePath: string) => {
Expand Down Expand Up @@ -49,17 +49,17 @@ export const SequencerGalleryModal = ({
</DialogTitle>
</DialogHeader>
<ScrollArea className="">
{data.map((SeqExample) => (
{data.map((seqExample) => (
<>
<Separator />
<div className="1 inline-flex min-h-20 w-full items-center">
<div className="flex w-3/4">
<div className="flex grow flex-col items-start">
<div className="text-xl font-semibold">
{SeqExample.title}
{seqExample.title}
</div>
<div className="text-sm font-thin">
{SeqExample.description}
{seqExample.description}
</div>
</div>
</div>
Expand All @@ -68,12 +68,12 @@ export const SequencerGalleryModal = ({
variant="outline"
size="sm"
className="ml-6 gap-2"
data-testid={SeqExample.title
data-testid={seqExample.title
.toLowerCase()
.split(" ")
.join("_")}
onClick={() => {
handleSequenceLoad(SeqExample.dirPath);
handleSequenceLoad(seqExample.dirPath);
}}
>
Load
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async function saveToDisk(
}

async function installDeps(sequence: TestSequencerProject): Promise<boolean> {
if (sequence.interpreter.requirementsPath !== null) {
if (sequence.interpreter.requirementsPath === null) {
return true;
}
const success = await window.api.poetryInstallRequirementsUserGroup(
Expand Down

0 comments on commit eb0525d

Please sign in to comment.