mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-05-11 04:07:51 +00:00
Use material searchIcon
This commit is contained in:
parent
fda3208072
commit
8cd67ddba7
@ -6,7 +6,6 @@ import {
|
|||||||
AppLibrarySubTitle,
|
AppLibrarySubTitle,
|
||||||
AppsContainer,
|
AppsContainer,
|
||||||
AppsLibraryContainer,
|
AppsLibraryContainer,
|
||||||
AppsParent,
|
|
||||||
AppsSearchContainer,
|
AppsSearchContainer,
|
||||||
AppsSearchLeft,
|
AppsSearchLeft,
|
||||||
AppsSearchRight,
|
AppsSearchRight,
|
||||||
@ -27,7 +26,7 @@ import {
|
|||||||
} from '@mui/material';
|
} from '@mui/material';
|
||||||
import { getBaseApiReact } from '../../App';
|
import { getBaseApiReact } from '../../App';
|
||||||
import LogoSelected from '../../assets/svgs/LogoSelected.svg';
|
import LogoSelected from '../../assets/svgs/LogoSelected.svg';
|
||||||
import IconSearch from '../../assets/svgs/Search.svg';
|
import SearchIcon from '@mui/icons-material/Search';
|
||||||
import IconClearInput from '../../assets/svgs/ClearInput.svg';
|
import IconClearInput from '../../assets/svgs/ClearInput.svg';
|
||||||
import qappDevelopText from '../../assets/svgs/qappDevelopText.svg';
|
import qappDevelopText from '../../assets/svgs/qappDevelopText.svg';
|
||||||
import qappLibraryText from '../../assets/svgs/qappLibraryText.svg';
|
import qappLibraryText from '../../assets/svgs/qappLibraryText.svg';
|
||||||
@ -41,7 +40,6 @@ import {
|
|||||||
AppsDesktopLibraryBody,
|
AppsDesktopLibraryBody,
|
||||||
AppsDesktopLibraryHeader,
|
AppsDesktopLibraryHeader,
|
||||||
} from './AppsDesktop-styles';
|
} from './AppsDesktop-styles';
|
||||||
import ReturnSVG from '../../assets/svgs/Return.svg';
|
|
||||||
import {
|
import {
|
||||||
ComposeP,
|
ComposeP,
|
||||||
MailIconImg,
|
MailIconImg,
|
||||||
@ -202,7 +200,8 @@ export const AppsLibraryDesktop = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<AppsSearchLeft>
|
<AppsSearchLeft>
|
||||||
<img src={IconSearch} />
|
<SearchIcon />
|
||||||
|
|
||||||
<InputBase
|
<InputBase
|
||||||
value={searchValue}
|
value={searchValue}
|
||||||
onChange={(e) => setSearchValue(e.target.value)}
|
onChange={(e) => setSearchValue(e.target.value)}
|
||||||
@ -215,6 +214,7 @@ export const AppsLibraryDesktop = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</AppsSearchLeft>
|
</AppsSearchLeft>
|
||||||
|
|
||||||
<AppsSearchRight>
|
<AppsSearchRight>
|
||||||
{searchValue && (
|
{searchValue && (
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
@ -227,6 +227,7 @@ export const AppsLibraryDesktop = ({
|
|||||||
)}
|
)}
|
||||||
</AppsSearchRight>
|
</AppsSearchRight>
|
||||||
</AppsSearchContainer>
|
</AppsSearchContainer>
|
||||||
|
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
getQapps();
|
getQapps();
|
||||||
@ -234,7 +235,6 @@ export const AppsLibraryDesktop = ({
|
|||||||
>
|
>
|
||||||
<RefreshIcon
|
<RefreshIcon
|
||||||
sx={{
|
sx={{
|
||||||
color: 'rgba(250, 250, 250, 0.5)',
|
|
||||||
width: '40px',
|
width: '40px',
|
||||||
height: 'auto',
|
height: 'auto',
|
||||||
}}
|
}}
|
||||||
@ -244,6 +244,7 @@ export const AppsLibraryDesktop = ({
|
|||||||
</Box>
|
</Box>
|
||||||
</AppsWidthLimiter>
|
</AppsWidthLimiter>
|
||||||
</AppsDesktopLibraryHeader>
|
</AppsDesktopLibraryHeader>
|
||||||
|
|
||||||
<AppsDesktopLibraryBody
|
<AppsDesktopLibraryBody
|
||||||
sx={{
|
sx={{
|
||||||
height: `calc(100vh - 36px)`,
|
height: `calc(100vh - 36px)`,
|
||||||
@ -261,6 +262,7 @@ export const AppsLibraryDesktop = ({
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Spacer height="70px" />
|
<Spacer height="70px" />
|
||||||
|
|
||||||
<ShowMessageReturnButton
|
<ShowMessageReturnButton
|
||||||
sx={{
|
sx={{
|
||||||
padding: '2px',
|
padding: '2px',
|
||||||
@ -268,11 +270,10 @@ export const AppsLibraryDesktop = ({
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
executeEvent('navigateBack', {});
|
executeEvent('navigateBack', {});
|
||||||
}}
|
}}
|
||||||
>
|
></ShowMessageReturnButton>
|
||||||
<MailIconImg src={ReturnSVG} />
|
|
||||||
<ComposeP>Return to Apps Dashboard</ComposeP>
|
|
||||||
</ShowMessageReturnButton>
|
|
||||||
<Spacer height="20px" />
|
<Spacer height="20px" />
|
||||||
|
|
||||||
{searchedList?.length > 0 ? (
|
{searchedList?.length > 0 ? (
|
||||||
<AppsWidthLimiter>
|
<AppsWidthLimiter>
|
||||||
<StyledVirtuosoContainer
|
<StyledVirtuosoContainer
|
||||||
@ -316,13 +317,9 @@ export const AppsLibraryDesktop = ({
|
|||||||
return (
|
return (
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
sx={{
|
sx={{
|
||||||
// height: "80px",
|
|
||||||
width: '80px',
|
width: '80px',
|
||||||
}}
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
// executeEvent("addTab", {
|
|
||||||
// data: qapp
|
|
||||||
// })
|
|
||||||
executeEvent('selectedAppInfo', {
|
executeEvent('selectedAppInfo', {
|
||||||
data: qapp,
|
data: qapp,
|
||||||
});
|
});
|
||||||
@ -358,6 +355,7 @@ export const AppsLibraryDesktop = ({
|
|||||||
/>
|
/>
|
||||||
</Avatar>
|
</Avatar>
|
||||||
</AppCircle>
|
</AppCircle>
|
||||||
|
|
||||||
<AppCircleLabel>
|
<AppCircleLabel>
|
||||||
{qapp?.metadata?.title || qapp?.name}
|
{qapp?.metadata?.title || qapp?.name}
|
||||||
</AppCircleLabel>
|
</AppCircleLabel>
|
||||||
@ -366,7 +364,9 @@ export const AppsLibraryDesktop = ({
|
|||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
</AppsContainer>
|
</AppsContainer>
|
||||||
|
|
||||||
<Spacer height="80px" />
|
<Spacer height="80px" />
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
@ -389,7 +389,9 @@ export const AppsLibraryDesktop = ({
|
|||||||
>
|
>
|
||||||
{hasPublishApp ? 'Update Apps!' : 'Create Apps!'}
|
{hasPublishApp ? 'Update Apps!' : 'Create Apps!'}
|
||||||
</AppLibrarySubTitle>
|
</AppLibrarySubTitle>
|
||||||
|
|
||||||
<Spacer height="18px" />
|
<Spacer height="18px" />
|
||||||
|
|
||||||
<PublishQAppCTAParent
|
<PublishQAppCTAParent
|
||||||
sx={{
|
sx={{
|
||||||
gap: '25px',
|
gap: '25px',
|
||||||
@ -399,9 +401,11 @@ export const AppsLibraryDesktop = ({
|
|||||||
<PublishQAppDotsBG>
|
<PublishQAppDotsBG>
|
||||||
<img src={qappDots} />
|
<img src={qappDots} />
|
||||||
</PublishQAppDotsBG>
|
</PublishQAppDotsBG>
|
||||||
|
|
||||||
<Spacer width="29px" />
|
<Spacer width="29px" />
|
||||||
<img src={qappDevelopText} />
|
<img src={qappDevelopText} />
|
||||||
</PublishQAppCTALeft>
|
</PublishQAppCTALeft>
|
||||||
|
|
||||||
<PublishQAppCTARight
|
<PublishQAppCTARight
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setMode('publish');
|
setMode('publish');
|
||||||
@ -410,10 +414,12 @@ export const AppsLibraryDesktop = ({
|
|||||||
<PublishQAppCTAButton>
|
<PublishQAppCTAButton>
|
||||||
{hasPublishApp ? 'Update' : 'Publish'}
|
{hasPublishApp ? 'Update' : 'Publish'}
|
||||||
</PublishQAppCTAButton>
|
</PublishQAppCTAButton>
|
||||||
|
|
||||||
<Spacer width="20px" />
|
<Spacer width="20px" />
|
||||||
</PublishQAppCTARight>
|
</PublishQAppCTARight>
|
||||||
</PublishQAppCTAParent>
|
</PublishQAppCTAParent>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@ -430,10 +436,10 @@ export const AppsLibraryDesktop = ({
|
|||||||
<Spacer height="18px" />
|
<Spacer height="18px" />
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
width: '100%',
|
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
gap: '20px',
|
|
||||||
flexWrap: 'wrap',
|
flexWrap: 'wrap',
|
||||||
|
gap: '20px',
|
||||||
|
width: '100%',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ButtonBase
|
<ButtonBase
|
||||||
@ -448,14 +454,14 @@ export const AppsLibraryDesktop = ({
|
|||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
|
||||||
height: '60px',
|
|
||||||
padding: '0px 24px',
|
|
||||||
border: '4px solid #10242F',
|
border: '4px solid #10242F',
|
||||||
borderRadius: '6px',
|
borderRadius: '6px',
|
||||||
boxShadow: '2px 4px 0px 0px #000000',
|
boxShadow: '2px 4px 0px 0px #000000',
|
||||||
|
display: 'flex',
|
||||||
|
height: '60px',
|
||||||
|
justifyContent: 'center',
|
||||||
|
padding: '0px 24px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
All
|
All
|
||||||
@ -473,14 +479,14 @@ export const AppsLibraryDesktop = ({
|
|||||||
>
|
>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
|
||||||
height: '60px',
|
|
||||||
padding: '0px 24px',
|
|
||||||
border: '4px solid #10242F',
|
border: '4px solid #10242F',
|
||||||
borderRadius: '6px',
|
borderRadius: '6px',
|
||||||
boxShadow: '2px 4px 0px 0px #000000',
|
boxShadow: '2px 4px 0px 0px #000000',
|
||||||
|
display: 'flex',
|
||||||
|
height: '60px',
|
||||||
|
justifyContent: 'center',
|
||||||
|
padding: '0px 24px',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{category?.name}
|
{category?.name}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user