diff --git a/apps/website/src/components/table-issues.tsx b/apps/website/src/components/table-issues.tsx index 8064bf23..649a1b3a 100644 --- a/apps/website/src/components/table-issues.tsx +++ b/apps/website/src/components/table-issues.tsx @@ -1,41 +1,182 @@ -import { Avatar, Button, Tag, Text } from '@status-im/components' +import { useState } from 'react' + +import { Avatar, Button, Input, Tag, Text } from '@status-im/components' +import { DropdownMenu } from '@status-im/components/src/dropdown-menu' +import { DropdownIcon, OpenIcon, SearchIcon } from '@status-im/icons' import Link from 'next/link' const issues = [ { id: 5154, title: 'Add support for encrypted communities', - status: 'Open', + status: 'open', }, { id: 5155, title: 'Add support for encrypted communities', - status: 'Open', + status: 'open', }, { id: 4, title: 'Add support for encrypted communities', - status: 'Open', + status: 'open', }, { id: 4324, title: 'Add support for encrypted communities', - status: 'Open', + status: 'open', }, { - id: 876, + id: 134, title: 'Add support for encrypted communities', - status: 'Open', + status: 'closed', + }, + { + id: 999, + title: 'Add support for encrypted communities', + status: 'closed', + }, + { + id: 873, + title: 'Add support for encrypted communities', + status: 'open', + }, + { + id: 123, + title: 'Add support for encrypted communities', + status: 'open', + }, +] + +const authors = [ + { + id: 1, + name: 'Tobias', + avatar: + 'https://images.unsplash.com/photo-1518020382113-a7e8fc38eac9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=500&h=500&q=80', + }, + { + id: 2, + name: 'Arnold', + avatar: + 'https://images.unsplash.com/photo-1518020382113-a7e8fc38eac9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=500&h=500&q=80', + }, + { + id: 3, + name: 'Alisher', + avatar: + 'https://images.unsplash.com/photo-1518020382113-a7e8fc38eac9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=500&h=500&q=80', + }, + { + id: 4, + name: 'marcelines', + avatar: 'https://avatars.githubusercontent.com/u/29401404?v=4', + }, + { + id: 5, + name: 'prichodko', + avatar: 'https://avatars.githubusercontent.com/u/14926950?v=4', + }, + { + id: 6, + name: 'felicio', + avatar: 'https://avatars.githubusercontent.com/u/13265126?v=4', + }, + { + id: 7, + name: 'jkbktl', + avatar: 'https://avatars.githubusercontent.com/u/520927?v=4', }, ] export const TableIssues = () => { + const [activeTab, setActiveTab] = useState<'open' | 'closed'>('open') + + const [authorFilterText, setAuthorFilterText] = useState('') + const filteredAuthors = authors.filter(author => + author.name.toLowerCase().includes(authorFilterText.toLowerCase()) + ) + return (