Skip to content

Commit

Permalink
fix: fixes build error
Browse files Browse the repository at this point in the history
  • Loading branch information
ghoshnirmalya committed Aug 1, 2020
1 parent 5d0c860 commit a0eb4ee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
10 changes: 8 additions & 2 deletions frontend/components/access-denied-indicator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import { Icon, Flex, Button, Stack, Box } from "@chakra-ui/core";
import Link from "next/link";
import { signIn } from "next-auth/client";

const AccessDeniedIndicator: FC = () => {
interface IProps {
message?: string;
}

const AccessDeniedIndicator: FC<IProps> = ({
message = "You need to Sign In to view this content!",
}) => {
const iconNode = () => {
return <Icon name="warning-2" color="purple" size="50px" />;
};
Expand All @@ -18,7 +24,7 @@ const AccessDeniedIndicator: FC = () => {
signIn();
}}
>
You need to Sign In to view this content!
{message}
</Button>
</Link>
);
Expand Down
31 changes: 0 additions & 31 deletions frontend/pages/users.tsx

This file was deleted.

1 comment on commit a0eb4ee

@vercel
Copy link

@vercel vercel bot commented on a0eb4ee Aug 1, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.