-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a0f00c
commit f2f1c38
Showing
10 changed files
with
72 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { SemitoneStatus, TrackQuery } from "@/lib/graphql/generated" | ||
import { formatStatus } from "@/lib/utils" | ||
|
||
type TrackProps = { | ||
track: NonNullable<TrackQuery["track"]> | ||
} | ||
|
||
export const Track: React.FC<TrackProps> = ({ track }) => { | ||
return ( | ||
<> | ||
<div className="mt-4 text-green-500 font-semibold capitalize flex space-x-4 items-center"> | ||
<span>Name:</span> | ||
<span>{track.name}</span> | ||
</div> | ||
<div className="text-green-500 font-semibold capitalize flex space-x-4 items-center"> | ||
<span>Current Status:</span> | ||
<span> | ||
{formatStatus( | ||
track.semitones.every(({ status }) => status === SemitoneStatus.Completed) | ||
? "Done" | ||
: "Processing", | ||
)} | ||
</span> | ||
</div> | ||
</> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...144b402f5c451313ee837d0b5b788c3794e3.json → ...47949f13c0dd3a44f7590aa540fe487e2066.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
server/.sqlx/query-e0dc76a1dcfd0e65fe1f651d721209ca6c34d435bf052aa7e38429efe8ab1283.json
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters