mirror of
https://github.com/makeplane/plane.git
synced 2026-07-12 21:40:18 +02:00
* chore: intake email and forms ui * chore: intake forms * chore: api integrations for settings * fix: intake tooltip * fix: type added * fix: intake form space * fix: forms * fix: space app form for intake * fix: lint issue * fix: theme based image handling * fix: type fixed * chore: intake settings modal * fix: handled html text area * chore: payload changes for intake settings * fix: changed api endpoint * fix: build issues * chore: issue creation for intake forms * chore: in-app intake toggle * fix: added feature flagging * chore: changed the default response * fix: changed flag * fix: handled placeholders * fix: removed unwnated classes * chore: removed the extra migration --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com> Co-authored-by: Bavisetti Narayan <72156168+NarayanBavisetti@users.noreply.github.com>
6 lines
330 B
TypeScript
6 lines
330 B
TypeScript
export const getDescriptionPlaceholder = (isFocused: boolean, description: string | undefined): string => {
|
|
const isDescriptionEmpty = !description || description === "<p></p>" || description.trim() === "";
|
|
if (!isDescriptionEmpty || isFocused) return "Press '/' for commands...";
|
|
else return "Click to add description";
|
|
};
|