Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
xnuk committed May 21, 2022
1 parent df153d7 commit f003417
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ export const tartoUrl = (name: string) => {
: 'https://ff14.tar.to/item/view/' + index
}

const Tarto: FC<{ name: string }> = ({ name }) => (
const Tarto: FC<{
name: string
exists?: { readonly [key: string]: readonly string[] }
}> = ({ name, exists }) => (
<Popup class={styles.linkTarto} href={tartoUrl(name)}>
{name}
<span>{name}</span>
{exists && <Existance exists={exists} />}
</Popup>
)

Expand All @@ -42,8 +46,7 @@ export const Item: FC<{

return (
<li class={styles.item}>
<Tarto name={name} />
{exists && <Existance exists={exists} />}
<Tarto name={name} exists={exists} />
<button
class={styles.deleteItemBtn}
onClick={() => {
Expand Down

0 comments on commit f003417

Please sign in to comment.