Skip to content
Draft
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
3 changes: 3 additions & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@
"@vanilla-extract/next-plugin": "^2.4.11",
"@vanilla-extract/recipes": "^0.5.7",
"@vercel/og": "^0.6.8",
"@zoralabs/coins-sdk": "^0.3.3",
"@zoralabs/protocol-deployments": "^0.6.4",
"ai": "^5.0.76",
"alchemy-sdk": "^3.6.0",
"axios": "^1.12.2",
"dayjs": "^1.11.13",
"flatpickr": "^4.6.13",
"formik": "^2.4.6",
"framer-motion": "^12.12.1",
"ioredis": "^5.8.1",
"next": "^15.5.9",
Expand Down
26 changes: 19 additions & 7 deletions apps/web/src/modules/dashboard/CreateActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,32 @@ export const CreateActions: React.FC<CreateActionsProps> = ({
const [selectorOpen, setSelectorOpen] = useState(false)
const [actionType, setActionType] = useState<'post' | 'proposal'>('post')

const handleCreatePost = () => {
setActionType('post')
setSelectorOpen(true)
}

const handleCreateProposal = () => {
setActionType('proposal')
setSelectorOpen(true)
}

return (
<>
<Flex className={actionButtons} gap="x3">
<Button onClick={handleCreateProposal} style={{ flex: 1 }}>
Create Proposal
</Button>
<Button variant="outline" style={{ flex: 1 }} as={Link} href="/create">
Create a DAO
</Button>
<Flex direction="column" className={actionButtons} gap="x3">
<Flex gap="x3">
<Button onClick={handleCreatePost} style={{ flex: 1 }}>
Create Post
</Button>
<Button onClick={handleCreateProposal} variant="outline" style={{ flex: 1 }}>
Create Proposal
</Button>
</Flex>
<Link href="/create" style={{ width: '100%', flex: 1 }}>
<Button variant="ghost" style={{ flex: 1, width: '100%' }}>
Create a DAO
</Button>
</Link>
</Flex>

<DaoSelectorModal
Expand Down
15 changes: 15 additions & 0 deletions apps/web/src/modules/dashboard/MobileCreateMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export const MobileCreateMenu: React.FC<MobileCreateMenuProps> = ({
const [selectorOpen, setSelectorOpen] = useState(false)
const [actionType, setActionType] = useState<'post' | 'proposal'>('post')

const handleCreatePost = () => {
setActionType('post')
setSelectorOpen(true)
}

const handleCreateProposal = () => {
setActionType('proposal')
setSelectorOpen(true)
Expand All @@ -35,6 +40,16 @@ export const MobileCreateMenu: React.FC<MobileCreateMenuProps> = ({
<Text className={createMenuTitle}>What would you like to create?</Text>

<div className={createMenuGrid}>
<button className={createMenuCard} onClick={handleCreatePost} type="button">
<Icon id="brush" className={createMenuCardIcon} />
<Text fontSize="18" fontWeight="label">
Create Post
</Text>
<Text fontSize="14" color="text3">
Share updates and content with your DAO community
</Text>
</button>

<button className={createMenuCard} onClick={handleCreateProposal} type="button">
<Icon id="checkInCircle" className={createMenuCardIcon} />
<Text fontSize="18" fontWeight="label">
Expand Down
Loading
Loading