@@ -3,13 +3,12 @@ import {
33 Typography ,
44 Container ,
55 TextareaAutosize ,
6- Chip ,
76 Box ,
87} from "@mui/material" ;
98import { format } from "date-fns" ;
109import { useState } from "react" ;
11- import { AdjustOutlined , CalendarMonthOutlined } from "@mui/icons-material" ;
1210
11+ import Chip from "@/components/design_system/chip/Chip" ;
1312import Button from "@/components/design_system/button/Button" ;
1413import { trpc } from "@/client/lib/trpc" ;
1514import $GoalPage from "@/styles/GoalPage.module.css" ;
@@ -82,11 +81,10 @@ export const GoalHeader = ({
8281 alignItems = "flex-start"
8382 sx = { { flexShrink : 0 } }
8483 >
85- < Chip icon = { < AdjustOutlined /> } label = { name } variant = "outlined " />
84+ < Chip label = { name } variant = "target " />
8685 < Chip
87- icon = { < CalendarMonthOutlined /> }
8886 label = { `Created on: ${ format ( new Date ( createdAt ) , "MMM, dd, yyyy" ) } ` }
89- variant = "outlined "
87+ variant = "calendar "
9088 />
9189 </ Stack >
9290 { editable && (
@@ -99,22 +97,22 @@ export const GoalHeader = ({
9997 } }
10098 >
10199 { ! editGoal && (
102- < >
100+ < Box sx = { { display : "flex" , justifyContent : "right" } } >
103101 < Button
104102 variant = "tertiary"
105103 onClick = { showEditGoal }
106- sx = { { width : { xs : "100%" , md : "auto" } } }
104+ sx = { { width : { md : "auto" } } }
107105 >
108106 Edit goal
109107 </ Button >
110108 < Button
111109 variant = "secondary"
112110 onClick = { ( ) => alert ( "to be implemented" ) }
113- sx = { { width : { xs : "100%" , md : "auto" } } }
111+ sx = { { width : { md : "auto" } } }
114112 >
115113 View all goals
116114 </ Button >
117- </ >
115+ </ Box >
118116 ) }
119117 { editGoal && (
120118 < >
@@ -146,22 +144,26 @@ export const GoalHeader = ({
146144 } }
147145 style = { {
148146 width : "100%" ,
149- padding : "12px " ,
147+ padding : "24px " ,
150148 fontSize : "0.95rem" ,
151149 lineHeight : "1.6" ,
152- borderRadius : "4px " ,
153- border : "1px solid #e0e0e0 " ,
150+ borderRadius : "8px " ,
151+ border : "1px solid var(--outline) " ,
154152 fontFamily : "inherit" ,
155153 minHeight : "100px" ,
154+ backgroundColor : "var(--on-primary)" ,
156155 } }
157156 />
158157 ) : (
159158 < Typography
160159 variant = "body1"
161160 sx = { {
162- fontSize : "0.95rem" ,
163- lineHeight : "1.6" ,
164- color : "#1a1a1a" ,
161+ fontSize : "16px" ,
162+ lineHeight : "150%" ,
163+ color : "var(--on-background)" ,
164+ fontFamily : "var(--inter)" ,
165+ fontWeight : 400 ,
166+ letterSpacing : "0%" ,
165167 } }
166168 >
167169 { description }
0 commit comments