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

Added all of the final functionalities #44

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
22,011 changes: 11,303 additions & 10,708 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
"@types/node": "18.11.15",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.9",
"appwrite": "^13.0.1",
"aws-sdk": "^2.1565.0",
"axios": "^1.2.1",
"eslint": "8.29.0",
"eslint-config-next": "13.0.7",
Expand Down
22 changes: 22 additions & 0 deletions src/components/Common/DbInput.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Dispatch, FC, SetStateAction } from 'react'

export const DbInput: FC<{
inputTitle: string
placeholder: string
type: string
value: any
setValue: Dispatch<SetStateAction<any>>
}> = ({ inputTitle, setValue, value, placeholder, type }) => {
return (
<div className="flex flex-col space-y-1">
<span className="font-semibold">{inputTitle}</span>
<input
value={value}
onChange={(e) => setValue(e.target.value)}
placeholder={placeholder}
type={type}
className="p-1 ring-1 ring-gray-400 rounded-sm shadow-md"
/>
</div>
)
}
Loading