Skip to content

Commit

Permalink
discussion input added
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Jun 22, 2023
1 parent 2d20e51 commit 38412eb
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions src/components/chat_room/UploadPost.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Button, ButtonProps, Flex, Heading, Input, Text, Textarea } from "@chakra-ui/react";
import { Box, Button, ButtonProps, Center, Flex, Heading, Input, Text, Textarea } from "@chakra-ui/react";
import { CHAT_CATEGORIES } from "~/lib/constant";
import { useContext, useEffect } from "react";
import { UseStateProps } from "~/types/typedef";
Expand All @@ -7,6 +7,7 @@ import { Fragment} from "react";
import { useRouter } from "next/router";
import { PushNestedRouterParam } from "./hooks/NestedRouting";

import { EditIcon, ViewIcon } from "@chakra-ui/icons";

export default function UploadPost () {

Expand Down Expand Up @@ -93,8 +94,25 @@ const UploadForm = ({ categoryState }: { categoryState: UseStateProps<AppState>

{/* Main Input */}
<Text>Discussion title *</Text>
<Input placeholder="Title"/>
<Textarea placeholder="use markdown here"/>
<Input placeholder="Title" minH={'2.5rem'}/>
<Flex flexDir={'column'} bg={'var(--card-color)'} rounded={'lg'} gap={'0.5rem'} p = {'0.5rem'}>
<Flex gap={'0.5rem'}>
<Button size={'sm'} variant={'outline'}>
<EditIcon/>
</Button>
<Button size={'sm'} variant={'outline'} isActive={true}>
<ViewIcon/>
</Button>
</Flex>
<Textarea placeholder="use markdown here" minH={'10rem'} maxH={'30rem'} />
<Box ml={'auto'}>
<Button variant={'outline'} colorScheme="whatsapp" isDisabled={true}>start discussion</Button>
</Box>
</Flex>

<Center>

</Center>
</Flex>
}

Expand Down

1 comment on commit 38412eb

@vercel
Copy link

@vercel vercel bot commented on 38412eb Jun 22, 2023

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.