Skip to content

Commit

Permalink
fix 21_workspaceError
Browse files Browse the repository at this point in the history
  • Loading branch information
saithsab877 committed Feb 18, 2025
1 parent 81eb293 commit 938c515
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/form/inputs/TextAreaInputNew.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react';
import styled from 'styled-components';
import { SwitcherButton, SwitcherContainer } from 'people/widgetViews/workspace/style';
import { ErrorText, SwitcherButton, SwitcherContainer } from 'people/widgetViews/workspace/style';
import { renderMarkdown } from 'people/utils/RenderMarkdown';
import { snippetStore } from 'store/snippetStore';
import { colors } from '../../../config/colors';
Expand Down Expand Up @@ -123,6 +123,8 @@ export default function TextAreaInputNew({
</SwitcherContainer>
</div>

{characterError && <ErrorText>Description is too long</ErrorText>}

<InputOuterBox
color={color}
borderColor={characterError || isError ? color.red2 : color.grayish.G600}
Expand Down

0 comments on commit 938c515

Please sign in to comment.