Run prettier

This commit is contained in:
Antti Sonkeri 2024-07-28 17:05:30 +03:00
parent 9f58bddcbe
commit 14664a5911
3 changed files with 16 additions and 16 deletions

View File

@ -12,14 +12,14 @@ const Wrapper = styled.div`
} }
} }
li { li {
display: flex; display: flex;
align-items: center; align-items: center;
border: 1px solid ${(props) => props.theme.text}; border: 1px solid ${(props) => props.theme.text};
border-radius: 5px; border-radius: 5px;
padding-inline: 5px; padding-inline: 5px;
background: ${(props) => props.theme.sidebar.bg}; background: ${(props) => props.theme.sidebar.bg};
} }
`; `;
export default Wrapper; export default Wrapper;

View File

@ -39,13 +39,13 @@ const TagList = ({ tags, onTagRemove, onTagAdd }) => {
<ul className="flex flex-wrap gap-1"> <ul className="flex flex-wrap gap-1">
{tags && tags.length {tags && tags.length
? tags.map((_tag) => ( ? tags.map((_tag) => (
<li key={_tag}> <li key={_tag}>
<span>{_tag}</span> <span>{_tag}</span>
<button tabIndex={-1} onClick={() => onTagRemove(_tag)}> <button tabIndex={-1} onClick={() => onTagRemove(_tag)}>
<IconX strokeWidth={1.5} size={20} /> <IconX strokeWidth={1.5} size={20} />
</button> </button>
</li> </li>
)) ))
: null} : null}
</ul> </ul>
{isEditing ? ( {isEditing ? (

View File

@ -1767,7 +1767,7 @@ export const collectionsSlice = createSlice({
item.draft.request.tags = item.draft.request.tags.filter((t) => t !== tag.trim()); item.draft.request.tags = item.draft.request.tags.filter((t) => t !== tag.trim());
} }
} }
}, }
} }
}); });