diff --git a/README.md b/README.md new file mode 100644 index 0000000..aeb88aa --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +"#create repo network-class-frontend" +"#review_code" diff --git a/src/features/DeviceSetting/ui/SelectDevice.tsx b/src/features/DeviceSetting/ui/SelectDevice.tsx index 2cb5085..e0d2318 100644 --- a/src/features/DeviceSetting/ui/SelectDevice.tsx +++ b/src/features/DeviceSetting/ui/SelectDevice.tsx @@ -36,6 +36,7 @@ const Selected = styled.div` font-family: var(--font); font-size: 18px; font-weight: 400; + width: 214px; `; const Icon = styled.img` diff --git a/src/widgets/layout/Navbar.tsx b/src/widgets/layout/Navbar.tsx index d1d659c..12481a1 100644 --- a/src/widgets/layout/Navbar.tsx +++ b/src/widgets/layout/Navbar.tsx @@ -1,4 +1,5 @@ // import React from 'react'; +import { useParams, useSearchParams } from 'react-router-dom'; import styled from 'styled-components'; import { AddRoomButton } from '../../features/AddRoom.tsx/index.ts'; import { SearchInput } from '../../features/Search/index.ts'; @@ -63,7 +64,12 @@ interface Props { const Navbar: React.FC = ({ activeLink, /*allLength, accessLength, myLength*/ }) => { function addRoom() { - roomsFormState.openCreateForm(); + const currentUrl = window.location.href; + if (currentUrl !== "http://localhost:5173/lobby/my") { + window.location.href = '/lobby/my'; + roomsFormState.openCreateForm(); + } + roomsFormState.openCreateForm(); } function editRooms() {