Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disable create button #1100

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions apps/web/src/components/Common/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Button } from '@components/UIElements/Button'
import DropMenu, { NextLink } from '@components/UIElements/DropMenu'
import Modal from '@components/UIElements/Modal'
import Tooltip from '@components/UIElements/Tooltip'
import { Menu } from '@headlessui/react'
import useAuthPersistStore from '@lib/store/auth'
import useChannelStore from '@lib/store/channel'
Expand Down Expand Up @@ -162,16 +163,19 @@ const Header: FC<Props> = ({ className }) => {
</div>
</DropMenu>
) : (
<Link href="/upload">
<Button
className="hidden md:block"
icon={<NewVideoOutline className="h-4 w-4" />}
>
<span>
<Trans>New video</Trans>
</span>
</Button>
</Link>
<Tooltip content="V2 upgrade in progress - New posts are disabled for few hours.">
<Link href="/upload">
<Button
disabled
className="hidden md:block"
icon={<NewVideoOutline className="h-4 w-4" />}
>
<span>
<Trans>New video</Trans>
</span>
</Button>
</Link>
</Tooltip>
)}
</>
) : null}
Expand Down
Loading