Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 authored Aug 12, 2023
1 parent 7da3cee commit 7c32dd5
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions src/components/modals/JoinServerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styled from "styled-components";
import useLogger from "../../hooks/useLogger";
import { useAppStore } from "../../stores/AppStore";
import { messageFromFieldError } from "../../utils/messageFromFieldError";
import { InputErrorText, LabelWrapper } from "../AuthComponents";
import { Input, InputErrorText, InputLabel, InputWrapper, LabelWrapper } from "../AuthComponents";
import { Divider } from "../Divider";
import Icon from "../Icon";
import AddServerModal from "./AddServerModal";
Expand All @@ -25,30 +25,11 @@ export const ModalHeader = styled.div`
padding: 16px;
`;

const Input = styled.input`
border-radius: 8px;
padding: 10px;
margin-bottom: 10px;
border: none;
outline: none;
cursor: text;
font-size: 16px;
font-weight: 500;
color: var(--text);
background-color: var(--background-primary);
`;

const InviteInputContainer = styled.div`
display: flex;
flex-direction: column;
`;

const FormLabel = styled.label`
margin-bottom: 8px;
font-size: 16px;
color: var(--text-header-secondary);
`;

type FormValues = {
code: string;
};
Expand Down Expand Up @@ -144,7 +125,7 @@ function JoinServerModal() {
<form>
<InviteInputContainer>
<LabelWrapper error={!!errors.code}>
<FormLabel>Invite Link</FormLabel>
<InputLabel>Invite Link</InputLabel>

{errors.code && (
<InputErrorText>
Expand Down

0 comments on commit 7c32dd5

Please sign in to comment.