-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
260 ra posts createedit markdown preview #346
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dobree, pohodicka. len stylisticke zmeny asi
<FormDataConsumer> | ||
{({formData}) => { | ||
return ( | ||
<> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nadbytocny fragment
{({formData}) => { | ||
return ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
da sa tiez zbavit curly brackets
openDetail={() => { | ||
openDetail(true) | ||
}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiez by som sa zbavil curly.. ale to su nitpick komentare co by som nemal ani pisat 😄
<Grid container> | ||
<Grid xs={6}> | ||
<Stack gap={5}> | ||
<Post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aasi ok... vravim si, ked pozeram na ten Posts.tsx, ze by sa dalo extrahovat viac, cele UI postov, a v arrayi posts by si tam tuto poslal jeden element. ale asi to teraz nestoji za dalsi effort
import {theme} from '@/theme' | ||
|
||
export const PostPreview: FC = () => { | ||
const [isDetailOpen, openDetail] = useState<boolean>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dalsi nit: pisal by som useState(false)
, aby to nezacinalo na undefined, a typ si to inferuje. doesn't matter really
No description provided.