Compare commits

..

No commits in common. "feature/avatar" and "main" have entirely different histories.

2 changed files with 5 additions and 9 deletions

View File

@ -55,7 +55,7 @@ export const SearchCharacterPage = () => {
search: searchValue search: searchValue
}), }),
headers: { headers: {
'Content-Type': 'shmapplication/json' 'Content-Type': 'application/json'
} }
}) })
.then((response) => response.json()) .then((response) => response.json())
@ -104,19 +104,15 @@ export const SearchCharacterPage = () => {
label="Поиск" label="Поиск"
placeHolder="Напишите имя для поиска" placeHolder="Напишите имя для поиска"
/> />
{searchValueError && <span style={{ color: 'red', display: 'flex'}}>Ай яй</span>}
{searchValueError && (
<span style={{ color: 'red', display: 'flex'}}>Ай яй</span>
}
<SearchButton type="submit">Поиск</SearchButton> <SearchButton type="submit">Поиск</SearchButton>
</SearchForm> </SearchForm>
</MainCardWrapper> </MainCardWrapper>
<CharacterList> <CharacterList>
{data?.map((char) => ( {data?.map((char) => (
<Connectedlink to={URLs.ui.charDetail.getUrl(char.id)}> <Connectedlink to={URLs.ui.charDetail.getUrl(char.id)}>
<CharacterItem> <CharacterItem key={char.id}>
<img src={char.image} key={char.id} /> <img src={char.image} />
<CharName>{char.name}</CharName> <CharName>{char.name}</CharName>
</CharacterItem> </CharacterItem>
</Connectedlink> </Connectedlink>

View File

@ -4,7 +4,7 @@ router.get("/landing-data", (request, response) => {
response.send(require("../json/landing-data/success.json")); response.send(require("../json/landing-data/success.json"));
}); });
router.smost("/login", (req, res) => { router.post("/login", (req, res) => {
const { username, password } = req.body; const { username, password } = req.body;
if (username === "admin") { if (username === "admin") {
response.send(require("../json/user/sitter.success.json")); response.send(require("../json/user/sitter.success.json"));