i like to move it. move it

This commit is contained in:
Igor Lobanov 2022-11-20 22:25:59 +01:00
parent d473fb1c37
commit 1cf942f6c8
11 changed files with 8 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import { Icon } from '../_shared/Icon' import { Icon } from '../_shared/Icon'
import { t } from '../../utils/intl' import { t } from '../../utils/intl'
import styles from '../_shared/Popup.module.scss' import styles from '../_shared/Popup/Popup.module.scss'
import type { PopupProps } from '../_shared/Popup' import type { PopupProps } from '../_shared/Popup'
import { Popup } from '../_shared/Popup' import { Popup } from '../_shared/Popup'

View File

@ -123,7 +123,6 @@ export const RegisterForm = () => {
</Show> </Show>
<div class="pretty-form__item"> <div class="pretty-form__item">
<input <input
id="name"
name="name" name="name"
type="text" type="text"
placeholder={t('Full name')} placeholder={t('Full name')}
@ -140,7 +139,7 @@ export const RegisterForm = () => {
id="email" id="email"
name="email" name="email"
autocomplete="email" autocomplete="email"
type="text" type="email"
value={email()} value={email()}
placeholder={t('Email')} placeholder={t('Email')}
onInput={(event) => handleEmailInput(event.currentTarget.value)} onInput={(event) => handleEmailInput(event.currentTarget.value)}

View File

@ -1,7 +1,7 @@
import { useSession } from '../../context/session' import { useSession } from '../../context/session'
import type { PopupProps } from '../_shared/Popup' import type { PopupProps } from '../_shared/Popup'
import { Popup } from '../_shared/Popup' import { Popup } from '../_shared/Popup'
import styles from '../_shared/Popup.module.scss' import styles from '../_shared/Popup/Popup.module.scss'
type ProfilePopupProps = Omit<PopupProps, 'children'> type ProfilePopupProps = Omit<PopupProps, 'children'>

View File

@ -41,7 +41,7 @@ export const AllAuthorsView = (props: Props) => {
const byLetter = createMemo<{ [letter: string]: Author[] }>(() => { const byLetter = createMemo<{ [letter: string]: Author[] }>(() => {
return sortedAuthors().reduce((acc, author) => { return sortedAuthors().reduce((acc, author) => {
let letter = author.name.trim().split(' ').pop().at(0).toUpperCase() let letter = author.name.trim().split(' ').pop().at(0).toUpperCase()
if (!/[А-я]/i.test(letter) && locale() === 'ru') letter = '@' if (!/[А-Я]/i.test(letter) && locale() === 'ru') letter = '@'
if (!acc[letter]) acc[letter] = [] if (!acc[letter]) acc[letter] = []
acc[letter].push(author) acc[letter].push(author)
return acc return acc

View File

@ -0,0 +1 @@
export * from './Icon'

View File

@ -1,7 +1,7 @@
import { createEffect, createSignal, JSX, Show } from 'solid-js' import { createEffect, createSignal, JSX, Show } from 'solid-js'
import styles from './Popup.module.scss' import styles from './Popup.module.scss'
import { clsx } from 'clsx' import { clsx } from 'clsx'
import { useOutsideClickHandler } from '../../utils/useOutsideClickHandler' import { useOutsideClickHandler } from '../../../utils/useOutsideClickHandler'
type HorizontalAnchor = 'center' | 'right' type HorizontalAnchor = 'center' | 'right'

View File

@ -0,0 +1 @@
export * from './Popup'

View File

@ -7,7 +7,7 @@ type SearchFieldProps = {
} }
export const SearchField = (props: SearchFieldProps) => { export const SearchField = (props: SearchFieldProps) => {
const handleInputChange = (event) => props.onChange(event.target.value) const handleInputChange = (event) => props.onChange(event.target.value.trim())
return ( return (
<div class={styles.searchField}> <div class={styles.searchField}>