Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Heroic-Games-Launcher/HeroicGamesLa…
Browse files Browse the repository at this point in the history
…uncher
  • Loading branch information
flavioislima committed Apr 24, 2022
2 parents 04d72c0 + b1f0b19 commit 34db37d
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
4 changes: 2 additions & 2 deletions src/components/UI/FormControl/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
font-size: 14px;
text-transform: uppercase;
font-weight: 600;
color: var(--accent);
color: var(--text-default);
}

.FormControl--segmented > button:not(:disabled):hover {
Expand All @@ -79,7 +79,7 @@

.FormControl--segmented > button:not(.non-important):active,
.FormControl--segmented > button:not(.non-important).active {
color: var(--text-default);
color: var(--accent);
}

.FormControl--segmented > button:not(:first-child) {
Expand Down
108 changes: 54 additions & 54 deletions src/screens/Library/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ export const Library = ({ library, showRecentsOnly }: Props) => {
setShowModal({ game: appName, show: true, runner })
}

if (refreshing && !showRecentsOnly) {
return <UpdateComponent inline />
}

function titleWithIcons() {
return (
<div className="titleWithIcons">
Expand Down Expand Up @@ -106,57 +102,61 @@ export const Library = ({ library, showRecentsOnly }: Props) => {
<h3 className="libraryHeader">
{showRecentsOnly ? t('Recent', 'Played Recently') : titleWithIcons()}
</h3>
<div
style={!library.length ? { backgroundColor: 'transparent' } : {}}
className={cx({
gameList: showRecentsOnly || layout === 'grid',
gameListLayout: layout !== 'grid' && !showRecentsOnly
})}
>
{!!library.length &&
list.map(
({
title,
art_square,
art_cover,
art_logo,
app_name,
is_installed,
is_mac_native,
is_linux_native,
runner,
cloud_save_enabled,
is_game,
install: { version, install_size, is_dlc }
}: GameInfo) => {
if (is_dlc) {
return null
{refreshing && !showRecentsOnly ? (
<UpdateComponent inline />
) : (
<div
style={!library.length ? { backgroundColor: 'transparent' } : {}}
className={cx({
gameList: showRecentsOnly || layout === 'grid',
gameListLayout: layout !== 'grid' && !showRecentsOnly
})}
>
{!!library.length &&
list.map(
({
title,
art_square,
art_cover,
art_logo,
app_name,
is_installed,
is_mac_native,
is_linux_native,
runner,
cloud_save_enabled,
is_game,
install: { version, install_size, is_dlc }
}: GameInfo) => {
if (is_dlc) {
return null
}
const hasUpdate = gameUpdates?.includes(app_name)
return (
<GameCard
key={app_name}
runner={runner}
cover={art_square}
coverList={art_cover}
logo={art_logo}
hasCloudSave={cloud_save_enabled}
title={title}
appName={app_name}
isInstalled={is_installed}
isGame={is_game}
version={`${version}`}
size={`${install_size}`}
hasUpdate={hasUpdate}
buttonClick={() => handleModal(app_name, runner)}
forceCard={showRecentsOnly}
isMacNative={is_mac_native}
isLinuxNative={is_linux_native}
/>
)
}
const hasUpdate = gameUpdates?.includes(app_name)
return (
<GameCard
key={app_name}
runner={runner}
cover={art_square}
coverList={art_cover}
logo={art_logo}
hasCloudSave={cloud_save_enabled}
title={title}
appName={app_name}
isInstalled={is_installed}
isGame={is_game}
version={`${version}`}
size={`${install_size}`}
hasUpdate={hasUpdate}
buttonClick={() => handleModal(app_name, runner)}
forceCard={showRecentsOnly}
isMacNative={is_mac_native}
isLinuxNative={is_linux_native}
/>
)
}
)}
</div>
)}
</div>
)}
{!showRecentsOnly && (
<button id="backToTopBtn" onClick={backToTop} ref={backToTopElement}>
<ArrowDropUp className="material-icons" />
Expand Down

0 comments on commit 34db37d

Please sign in to comment.