Skip to content

Commit 1661bf5

Browse files
committed
fix: minor ui issues
1 parent 7d724ba commit 1661bf5

File tree

11 files changed

+11
-18
lines changed

11 files changed

+11
-18
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"@radix-ui/react-toggle": "^1.0.3",
5555
"@reduxjs/toolkit": "^1.9.5",
5656
"@snyk/protect": "^1.1200.0",
57-
"@sumup/icons": "^2.30.1",
5857
"@testing-library/jest-dom": "^5.17.0",
5958
"@testing-library/react": "^14.0.0",
6059
"@testing-library/react-hooks": "^8.0.1",

src/components/BackButton/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { useNavigate } from 'react-router-dom'
3-
import { ArrowLeftIcon } from 'lucide-react'
3+
import { ChevronLeft } from 'lucide-react'
44

55
import { Button } from '@/components/ui/button'
66

@@ -12,11 +12,10 @@ const BackButton = ({ title }: { title?: string }) => {
1212
<Button
1313
variant="outline"
1414
onClick={() => navigate(-1)}
15-
title="back"
15+
title="navigate back"
1616
size="icon"
17-
className="border-2"
1817
>
19-
<ArrowLeftIcon />
18+
<ChevronLeft />
2019
</Button>
2120
{title ? <span className="">{title}</span> : null}
2221
</div>

src/components/Data/DataRowMain.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useCallback } from 'react'
2-
import { ChevronRight } from '@sumup/icons'
2+
import { ChevronRight } from 'lucide-react'
33

44
import { cn } from '@/utils/shadcn'
55

src/components/PageLayout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const PageLayout: React.FC<React.HTMLAttributes<HTMLDivElement>> = ({
1010
return (
1111
<div
1212
className={cn(
13-
'flex-1 flex min-h-full justify-center overflow-x-clip',
13+
'w-full flex-1 flex min-h-full justify-center overflow-x-clip',
1414
className,
1515
)}
1616
{...props}

src/data/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const useProfileValidation = (name: string | undefined) => {
3636
data: {
3737
name: props[1],
3838
},
39+
timeout: 30_000,
3940
})
4041

4142
return useSWR(

src/pages/Devices/components/DeviceItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React, { useCallback, useMemo, useState } from 'react'
22
import { useTranslation } from 'react-i18next'
33
import { useNavigate } from 'react-router-dom'
44
import { css } from '@emotion/react'
5-
import { ChevronRight } from '@sumup/icons'
65
import bytes from 'bytes'
76
import dayjs from 'dayjs'
7+
import { ChevronRight } from 'lucide-react'
88

99
import ActionsModal, { Action } from '@/components/ActionsModal'
1010
import { DataRow, DataRowMain, DataRowSub } from '@/components/Data'

src/pages/Home/components/MenuTile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { css } from '@emotion/react'
33
import styled from '@emotion/styled'
4-
import { MoveRightIcon } from 'lucide-react'
4+
import { ChevronRight } from 'lucide-react'
55

66
import { Button } from '@/components/ui/button'
77
import {
@@ -59,7 +59,7 @@ const MenuTile: React.FC<MenuTileProps> = (props) => {
5959
size="icon"
6060
onClick={() => handleClick()}
6161
>
62-
<MoveRightIcon />
62+
<ChevronRight />
6363
</Button>
6464
</div>
6565
) : null}

src/pages/Profiles/Manage/Manage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { toast } from 'react-hot-toast'
33
import { useTranslation } from 'react-i18next'
44
import { useNavigate } from 'react-router-dom'
55
import { Loader2Icon } from 'lucide-react'
6-
import useSWR from 'swr'
76

87
import CodeContent from '@/components/CodeContent'
98
import { DataGroup, DataRowMain } from '@/components/Data'

src/pages/Requests/components/RequestModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { toast } from 'react-hot-toast'
33
import { useTranslation } from 'react-i18next'
44
import { css } from '@emotion/react'
55
import styled from '@emotion/styled'
6-
import { Search } from '@sumup/icons'
76
import bytes from 'bytes'
87
import dayjs from 'dayjs'
8+
import { Search } from 'lucide-react'
99
import { basename } from 'path-browserify'
1010
import { mutate } from 'swr'
1111
import tw from 'twin.macro'

src/pages/Traffic/components/TrafficDataRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React, { useMemo, useState } from 'react'
22
import { Collapse } from 'react-collapse'
33
import { useTranslation } from 'react-i18next'
44
import { css } from '@emotion/react'
5-
import { ChevronRight } from '@sumup/icons'
65
import bytes from 'bytes'
6+
import { ChevronRight } from 'lucide-react'
77
import tw from 'twin.macro'
88

99
import { DataRow, DataRowMain, DataRowSub } from '@/components/Data'

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,11 +3064,6 @@
30643064
resolved "https://registry.yarnpkg.com/@snyk/protect/-/protect-1.1293.0.tgz#499c72d6900c86451335a45c34b2b8487747a5e1"
30653065
integrity sha512-k7Xv0lgFskXGjbnhKWmrBNG8d2DHuvEWFu5rVV6ppjDme30nAGn1pvX3XwEeLp9AcovJWjechUOusyNn6S7JKA==
30663066

3067-
"@sumup/icons@^2.30.1":
3068-
version "2.30.1"
3069-
resolved "https://registry.yarnpkg.com/@sumup/icons/-/icons-2.30.1.tgz#dcbbdd1ec8d4c63466041042c38a87fc62e72963"
3070-
integrity sha512-V0zFe03b10knxu+xpYIZtQQju4sNUPsUD8N+PLuu/ge6miDPqPOopR8ZftudRRsEji15G/pilEMBdBpStiEpgg==
3071-
30723067
"@surma/rollup-plugin-off-main-thread@^2.2.3":
30733068
version "2.2.3"
30743069
resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053"

0 commit comments

Comments
 (0)