Skip to content

Commit

Permalink
💄: Revert - Show Library Delete Buttons & Hide Social upload buttons (#…
Browse files Browse the repository at this point in the history
…806)

# Pull Request Info
UnCommented library delete buttons

Fixes (N/A)

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)

## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published

## Screenshots (if appropriate):
<img width="961" alt="image"
src="https://github.com/user-attachments/assets/cd51f498-cbdc-4c88-bb39-40b9a5057e1f">
  • Loading branch information
greatsamist authored Jul 24, 2024
1 parent 4bd6558 commit 58fb7d4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const EditSessionForm = ({
/>

<div className="flex items-end justify-end space-x-2">
{/* <DeleteAsset
<DeleteAsset
session={session}
href={`/studio/${organizationSlug}/library`}
TriggerComponent={
Expand All @@ -170,7 +170,7 @@ const EditSessionForm = ({
<p>Delete video</p>
</Button>
}
/> */}
/>
<Button
disabled={getFormSubmitStatus(form) || isLoading}
type="submit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ const UploadToYoutubeButton = ({

return (
<Dialog open={openModal} onOpenChange={setOpenModal}>
<DialogTrigger>
<Button className="min-w-[200px] bg-[#FF0000]">
<DialogTrigger disabled>
<Button disabled className="min-w-[200px] bg-[#FF0000]">
<SiYoutube className="mr-2" />
Publish to Youtube
Publish to Youtube (Coming Soon)
</Button>
</DialogTrigger>
<DialogContent className="z-[99999999999999999] px-8">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const PopoverActions = ({
assetId={session.assetId}
/>
)}
{/* <DeleteAsset
<DeleteAsset
session={session}
href={`/studio/${organizationSlug}/library`}
TriggerComponent={
Expand All @@ -102,7 +102,7 @@ export const PopoverActions = ({
<p>Delete</p>
</span>
}
/> */}
/>
</div>
</div>
)
Expand Down
10 changes: 5 additions & 5 deletions packages/app/components/Sidebar/SidebarMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ const SidebarMenu = ({
url: `/studio/${organizationSlug}/library`,
icon: <LuVideotape size={25} />,
},
{
text: 'Destinations',
url: `/studio/${organizationSlug}/destinations`,
icon: <LuShare2 size={25} />,
},
// {
// text: 'Destinations',
// url: `/studio/${organizationSlug}/destinations`,
// icon: <LuShare2 size={25} />,
// },
{
text: 'NFTs',
url: `/studio/${organizationSlug}/nfts`,
Expand Down
2 changes: 1 addition & 1 deletion packages/app/components/ui/Player.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function PlayerWithControls(props: {

<Player.ErrorIndicator
matcher="offline"
className="absolute inset-0 flex select-none flex-col items-center justify-center gap-4 bg-black/40 text-center backdrop-blur-lg duration-1000 animate-in fade-in-0 data-[visible=true]:animate-in data-[visible=false]:animate-out data-[visible=false]:fade-out-0 data-[visible=true]:fade-in-0">
className="absolute inset-0 flex select-none flex-col items-center justify-center gap-4 bg-black/40 text-center backdrop-blur-lg animate-in fade-in-0 duration-1000 data-[visible=true]:animate-in data-[visible=false]:animate-out data-[visible=false]:fade-out-0 data-[visible=true]:fade-in-0">
<div className="flex flex-col gap-5">
<div className="flex flex-col gap-1">
<div className="text-lg font-bold sm:text-2xl">
Expand Down

0 comments on commit 58fb7d4

Please sign in to comment.