-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
bbd7e1f
commit d04b6ef
Showing
10 changed files
with
113 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { useActions } from 'kea' | ||
import { Link } from 'lib/lemon-ui/Link' | ||
import notFoundAstrohog from 'public/not-found-astrohog.png' | ||
|
||
import { supportLogic } from '../Support/supportLogic' | ||
|
||
export interface AccessDeniedProps { | ||
object: string | ||
} | ||
|
||
export function AccessDenied({ object }: AccessDeniedProps): JSX.Element { | ||
const { openSupportForm } = useActions(supportLogic) | ||
|
||
return ( | ||
<div className="flex flex-col items-center max-w-2xl p-4 my-24 mx-auto text-center"> | ||
<img src={notFoundAstrohog} className="w-64 h-64 bg-no-repeat bg-center" /> | ||
<h1 className="text-3xl font-bold mt-4 mb-0">Access denied</h1> | ||
<p className="text-sm mt-3 mb-0"> | ||
You do not have access to this {object}. Please contact the creator of this {object} or{' '} | ||
<Link onClick={() => openSupportForm({ kind: 'support' })}>support</Link> if you think this is a | ||
mistake. | ||
</p> | ||
</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
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
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