refactor: tidy
This commit is contained in:
parent
6e4941f112
commit
13d7f15a5e
|
@ -44,25 +44,21 @@ const Persea = () => {
|
|||
<Route
|
||||
path="/"
|
||||
element={(
|
||||
<>
|
||||
<li className={styles.action}>
|
||||
{
|
||||
userId === 0
|
||||
? (
|
||||
<li className={styles.action}>
|
||||
<Link to="/login" className={classnames('button', styles.button)}>
|
||||
Log in
|
||||
</Link>
|
||||
</li>
|
||||
<Link to="/login" className={classnames('button', styles.button)}>
|
||||
Log in
|
||||
</Link>
|
||||
)
|
||||
: (
|
||||
<li className={styles.action}>
|
||||
<Link to="/overview" className={classnames('button', styles.button)}>
|
||||
Play
|
||||
</Link>
|
||||
</li>
|
||||
<Link to="/overview" className={classnames('button', styles.button)}>
|
||||
Play
|
||||
</Link>
|
||||
)
|
||||
}
|
||||
</>
|
||||
</li>
|
||||
)}
|
||||
/>
|
||||
<Route
|
||||
|
|
Loading…
Reference in New Issue
Block a user