From a93d4b927adc3f7f6330b3208ada69df6588193a Mon Sep 17 00:00:00 2001 From: marcelines Date: Tue, 27 Jun 2023 12:17:53 +0100 Subject: [PATCH] fix: differences from export and some tailwind css classname order rearrangement --- apps/website/src/components/index.tsx | 2 +- apps/website/src/components/table-issues.tsx | 85 ------------------- .../table-issues/filters/dropdown-filter.tsx | 3 +- .../table-issues/filters/dropdown-sort.tsx | 3 +- .../components/table-issues/table-issues.tsx | 8 +- 5 files changed, 9 insertions(+), 92 deletions(-) delete mode 100644 apps/website/src/components/table-issues.tsx diff --git a/apps/website/src/components/index.tsx b/apps/website/src/components/index.tsx index 2e50d9c0..8c6fc30e 100644 --- a/apps/website/src/components/index.tsx +++ b/apps/website/src/components/index.tsx @@ -1,4 +1,4 @@ export { Breadcrumbs } from './breadcrumbs/breadcrumbs' export { EpicOverview } from './epic-overview' export { SideBar } from './side-bar/side-bar' -export { TableIssues } from './table-issues' +export { TableIssues } from './table-issues/table-issues' diff --git a/apps/website/src/components/table-issues.tsx b/apps/website/src/components/table-issues.tsx deleted file mode 100644 index 5fedd1cc..00000000 --- a/apps/website/src/components/table-issues.tsx +++ /dev/null @@ -1,85 +0,0 @@ -import { Avatar, Button, Tag, Text } from '@status-im/components' -import Link from 'next/link' - -const issues = [ - { - id: 5154, - title: 'Add support for encrypted communities', - status: 'Open', - }, - { - id: 5155, - title: 'Add support for encrypted communities', - status: 'Open', - }, - { - id: 4, - title: 'Add support for encrypted communities', - status: 'Open', - }, - { - id: 4324, - title: 'Add support for encrypted communities', - status: 'Open', - }, - { - id: 876, - title: 'Add support for encrypted communities', - status: 'Open', - }, -] - -export const TableIssues = () => { - return ( -
-
- - 784 Open - -
- -
- {issues.map(issue => ( - -
- - {issue.title} - - - #9667 • Opened 2 days ago by slaedjenic - -
- -
-
- - - - -
- - - - -
- - ))} -
- -
- -
-
- ) -} diff --git a/apps/website/src/components/table-issues/filters/dropdown-filter.tsx b/apps/website/src/components/table-issues/filters/dropdown-filter.tsx index 2a619d96..74243274 100644 --- a/apps/website/src/components/table-issues/filters/dropdown-filter.tsx +++ b/apps/website/src/components/table-issues/filters/dropdown-filter.tsx @@ -3,6 +3,7 @@ import { cloneElement, useState } from 'react' import { Avatar, Button, Input, Text } from '@status-im/components' import { DropdownMenu } from '@status-im/components/src/dropdown-menu' import { DropdownIcon, SearchIcon } from '@status-im/icons' +import Image from 'next/image' import { useCurrentBreakpoint } from '@/hooks/use-current-breakpoint' @@ -110,7 +111,7 @@ const DropdownFilter = (props: Props) => { })} {filteredData.length === 0 && (
- No results { })} {data.length === 0 && (
- No results { const currentBreakpoint = useCurrentBreakpoint() return ( -
-
+
+
@@ -275,12 +275,12 @@ const TableIssues = () => {
-
+
{issues.map(issue => (