Only show views in Weapon and Summon search

This commit is contained in:
Justin Edmund 2023-08-23 02:43:21 -07:00
parent 8a552f7e3a
commit e7d76879d2

View file

@ -457,6 +457,7 @@ const SearchModal = (props: Props) => {
<h5 className={styles.total}> <h5 className={styles.total}>
{t('search.result_count', { record_count: recordCount })} {t('search.result_count', { record_count: recordCount })}
</h5> </h5>
{(props.object === 'weapons' || props.object === 'summons') && (
<div className={styles.viewSwitcher}> <div className={styles.viewSwitcher}>
<span>View: </span> <span>View: </span>
<button className={newestViewClasses} onClick={showNewest}> <button className={newestViewClasses} onClick={showNewest}>
@ -466,6 +467,7 @@ const SearchModal = (props: Props) => {
Recently used Recently used
</button> </button>
</div> </div>
)}
</div> </div>
{open ? renderResults() : ''} {open ? renderResults() : ''}
</div> </div>