Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion screens/AccountScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { useCarmel } from '~/sdk'
import { Tabs } from '~/elements';
import { CommunityPosts } from '~/components/posts'
import { getImageUrl } from '~/utils/main';
import Link from 'next/link';
import { DynamicIcon } from '~/elements';

const CardAuthor = ({
author, community, communityImage, authorImage
Expand Down Expand Up @@ -115,6 +117,22 @@ export const AccountScreen = (props: any) => {
setCarmels(all)
}, [carmel.data])

const ActionsSection = () => {
if (item.type !== "product") {
return <div className='mt-16'>
</div>
}

return <div className={`w-full flex flex-row justify-end mt-4`}>
<Link href={`/app/${item.username}`} key={'app'}>
<button
className={`${readex_pro.className} text-nowrap text-sm md:text-md shrink-0 hover:opacity-80 border-cyan font-medium border text-white px-2 py-2 shadow-early-access-button shrink-0`}>
Open App
</button>
</Link>
</div>
}

const TabBar = () => {
return <div className='mb-8 mt-8 border-b w-full pb-4 border-primary/40'>
<Tabs
Expand Down Expand Up @@ -174,7 +192,8 @@ export const AccountScreen = (props: any) => {

return <Container {...item}>
<div className={`flex flex-col ${isLoading() && 'animate-pulse'} align-start items-start w-full bg-black/80 border border-primary/20 pb-10 px-4`}>
<h4 className={`${readex_pro.className} lg:ml-56 text-3xl lg:text-3xl tracking-tight dark:text-white lg:mt-4 mt-20`}>
<ActionsSection/>
<h4 className={`${readex_pro.className} lg:ml-56 text-3xl lg:text-3xl tracking-tight dark:text-white mt-4 lg:-mt-12`}>
{ item.title }
</h4>
<Username item={item} isLoading={isLoading()}/>
Expand Down
2 changes: 1 addition & 1 deletion screens/home/MainHomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const Container = ({ children }: any) => {
</div>
)
}

export const MainHomeScreen = () => {
return <Container>
<div className="w-full flex flex-col justify-start items-center mt-64 lg:mt-10 pb-80 bg-black/0 z-50">
Expand All @@ -39,7 +40,6 @@ export const MainHomeScreen = () => {
Browse the store
</button>
</Link>

</div>
</Container>
}
Expand Down