Discover apps app modal opening fixes
This commit is contained in:
@@ -86,7 +86,7 @@ const AppModal = ({ open, onClose, app, userdata }) => {
|
|||||||
<div style={{ display: "flex", flexDirection: "row", gap: 10, fontFamily: "Inter" }}>
|
<div style={{ display: "flex", flexDirection: "row", gap: 10, fontFamily: "Inter" }}>
|
||||||
<img
|
<img
|
||||||
alt={app?.name}
|
alt={app?.name}
|
||||||
src={app?.large_image}
|
src={app?.large_image || app?.image_url}
|
||||||
style={{
|
style={{
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
maxWidth: 100,
|
maxWidth: 100,
|
||||||
@@ -201,7 +201,7 @@ const AppModal = ({ open, onClose, app, userdata }) => {
|
|||||||
mb: 0.3,
|
mb: 0.3,
|
||||||
color: '#fff'
|
color: '#fff'
|
||||||
}}>
|
}}>
|
||||||
{app?.actions?.length}
|
{Array.isArray(app?.actions) ? app.actions.length : app?.actions}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" sx={{ color: 'rgba(255, 255, 255, 0.7)' }}>
|
<Typography variant="body2" sx={{ color: 'rgba(255, 255, 255, 0.7)' }}>
|
||||||
Actions
|
Actions
|
||||||
|
|||||||
@@ -67,11 +67,7 @@ const AppCard = ({ data, index, mouseHoverIndex, setMouseHoverIndex, globalUrl,
|
|||||||
width: '100%',
|
width: '100%',
|
||||||
backgroundColor: mouseHoverIndex === index ? "#2F2F2F" : "#212121"
|
backgroundColor: mouseHoverIndex === index ? "#2F2F2F" : "#212121"
|
||||||
}}
|
}}
|
||||||
onClick={(event) => {
|
onClick={() => {
|
||||||
// if (!event.target.closest('.deactivate-button')) {
|
|
||||||
// window.location.href = appUrl;
|
|
||||||
// }
|
|
||||||
|
|
||||||
handleAppClick(data);
|
handleAppClick(data);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -190,6 +186,7 @@ const AppCard = ({ data, index, mouseHoverIndex, setMouseHoverIndex, globalUrl,
|
|||||||
const Hits = ({
|
const Hits = ({
|
||||||
userdata,
|
userdata,
|
||||||
hits,
|
hits,
|
||||||
|
handleAppClick,
|
||||||
setIsAnyAppActivated,
|
setIsAnyAppActivated,
|
||||||
searchQuery,
|
searchQuery,
|
||||||
globalUrl,
|
globalUrl,
|
||||||
@@ -316,13 +313,13 @@ const Hits = ({
|
|||||||
transitionDelay: `${workflowDelay}ms`,
|
transitionDelay: `${workflowDelay}ms`,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Grid>
|
<div
|
||||||
<a
|
onClick={
|
||||||
href={appUrl}
|
() => {
|
||||||
rel="noopener noreferrer"
|
handleAppClick(data);
|
||||||
target="_blank"
|
}
|
||||||
|
}
|
||||||
style={{
|
style={{
|
||||||
textDecoration: "none",
|
|
||||||
color: "#f85a3e",
|
color: "#f85a3e",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -501,8 +498,7 @@ const Hits = ({
|
|||||||
</div>
|
</div>
|
||||||
</ButtonBase>
|
</ButtonBase>
|
||||||
</Paper>
|
</Paper>
|
||||||
</a>
|
</div>
|
||||||
</Grid>
|
|
||||||
</Zoom>
|
</Zoom>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
@@ -1153,7 +1149,9 @@ const Apps2 = (props) => {
|
|||||||
{appsToShow?.length > 0 && appsToShow !== undefined ? (
|
{appsToShow?.length > 0 && appsToShow !== undefined ? (
|
||||||
<div style={{ rowGap: 16, columnGap: 16, marginTop: 16, display: "flex", flexWrap: "wrap", justifyContent: "flex-start", maxHeight: 570, scrollbarWidth: "thin", scrollbarColor: "#494949 #2f2f2f" }}>
|
<div style={{ rowGap: 16, columnGap: 16, marginTop: 16, display: "flex", flexWrap: "wrap", justifyContent: "flex-start", maxHeight: 570, scrollbarWidth: "thin", scrollbarColor: "#494949 #2f2f2f" }}>
|
||||||
{appsToShow.map((data, index) => (
|
{appsToShow.map((data, index) => (
|
||||||
<AppCard key={index} data={data} index={index} mouseHoverIndex={mouseHoverIndex} setMouseHoverIndex={setMouseHoverIndex} globalUrl={globalUrl} deactivatedIndexes={deactivatedIndexes} currTab={currTab}/>
|
<AppCard key={index} data={data} index={index} mouseHoverIndex={mouseHoverIndex} setMouseHoverIndex={setMouseHoverIndex} globalUrl={globalUrl} deactivatedIndexes={deactivatedIndexes} currTab={currTab}
|
||||||
|
handleAppClick={handleAppClick}
|
||||||
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
@@ -1172,6 +1170,7 @@ const Apps2 = (props) => {
|
|||||||
<CustomHits
|
<CustomHits
|
||||||
isLoggedIn={isLoggedIn}
|
isLoggedIn={isLoggedIn}
|
||||||
userdata={userdata}
|
userdata={userdata}
|
||||||
|
handleAppClick={handleAppClick}
|
||||||
setIsAnyAppActivated={setIsAnyAppActivated}
|
setIsAnyAppActivated={setIsAnyAppActivated}
|
||||||
hitsPerPage={5}
|
hitsPerPage={5}
|
||||||
globalUrl={globalUrl}
|
globalUrl={globalUrl}
|
||||||
|
|||||||
Reference in New Issue
Block a user