🧹 compose button uses shared Button component
Browse files at this commit9f5a8a84e65fb0b64c5b7d502207b2da40462843Parent: 1faead3- refactor
- 🧹 compose button uses shared Button component
1 changed file +6 -5
src/pages/messages-page.tsxmodified+6 -5
| @@ -168,10 +168,11 @@ export default function MessagesPage() { | |||
| 168 | <div class="flex flex-col md:flex-row min-h-[calc(100vh-7rem)]"> | 168 | <div class="flex flex-col md:flex-row min-h-[calc(100vh-7rem)]"> |
| 169 | {/* Gmail Left Sidebar */} | 169 | {/* Gmail Left Sidebar */} |
| 170 | <aside class="w-full md:w-60 border-r bg-card/60 p-4 shrink-0 space-y-6"> | 170 | <aside class="w-full md:w-60 border-r bg-card/60 p-4 shrink-0 space-y-6"> |
| 171 | - {/* Gmail Compose Button */} | 171 | + {/* Compose Button */} |
| 172 | - <button | 172 | + <Button |
| 173 | - type="button" | 173 | + variant="outline" |
| 174 | - class="flex h-12 px-6 items-center gap-3 rounded-2xl bg-card border border-border/80 shadow-md hover:shadow-lg hover:bg-accent text-foreground font-bold text-xs tracking-tight transition-all duration-200" | 174 | + size="lg" |
| 175 | + class="w-full justify-start gap-3 text-xs" | ||
| 175 | onClick={() => { | 176 | onClick={() => { |
| 176 | setReplyData(null); | 177 | setReplyData(null); |
| 177 | setComposeOpen(true); | 178 | setComposeOpen(true); |
| @@ -179,7 +180,7 @@ export default function MessagesPage() { | |||
| 179 | > | 180 | > |
| 180 | <IconPlus class="h-5 w-5 text-primary" /> | 181 | <IconPlus class="h-5 w-5 text-primary" /> |
| 181 | <span>{t("messages.newMessage")}</span> | 182 | <span>{t("messages.newMessage")}</span> |
| 182 | - </button> | 183 | + </Button> |
| 183 | 184 | ||
| 184 | {/* Gmail Folder Navigation List */} | 185 | {/* Gmail Folder Navigation List */} |
| 185 | <nav class="space-y-1"> | 186 | <nav class="space-y-1"> |