Skip to content

Commit

Permalink
Fix TextInputs across components
Browse files Browse the repository at this point in the history
refs TS-1942, TS-1829
  • Loading branch information
Oksamies committed Nov 15, 2023
1 parent 02b4d89 commit c34d4bb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function CommunityListLayout() {
<div className={styles.filters}>
<div className={styles.searchTextInput}>
<TextInput
setValue={setSearchValue}
onChange={(e) => setSearchValue(e.target.value)}
value={searchValue}
placeHolder="Search communities..."
leftIcon={<FontAwesomeIcon icon={faSearch} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function LoginForm() {
</label>
<TextInput
value={email}
setValue={setEmail}
onChange={(e) => setEmail(e.target.value)}
id="login_email"
placeHolder="Email"
/>
Expand All @@ -52,7 +52,7 @@ export function LoginForm() {
<TextInput
type="password"
value={password}
setValue={setPassword}
onChange={(e) => setPassword(e.target.value)}
id="login_password"
placeHolder="Password"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function TeamDetails(props: Props) {
<div className={styles.donationLinkTextInput}>
<TextInput
placeHolder="https://"
setValue={setDonationLink}
onChange={(e) => setDonationLink(e.target.value)}
value={donationLink}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ export function TeamServiceAccounts(props: Props) {
<span className={styles.dialogTeamName}>{teamName}</span>
</p>
<TextInput
setValue={setAddedServiceAccountName}
onChange={(e) =>
setAddedServiceAccountName(e.target.value)
}
value={addedServiceAccountName}
placeHolder="Username"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export function PackageSearch(props: Props) {
<TextInput
placeHolder="Filter Mods..."
value={searchValue}
setValue={setSearchValue}
onChange={(e) => setSearchValue(e.target.value)}
leftIcon={<FontAwesomeIcon icon={faSearch} />}
/>

Expand Down

0 comments on commit c34d4bb

Please sign in to comment.