diff --git a/apps/client/src/common/components/app-link/AppLink.module.scss b/apps/client/src/common/components/app-link/AppLink.module.scss index 839093ed3..ce4b01bb7 100644 --- a/apps/client/src/common/components/app-link/AppLink.module.scss +++ b/apps/client/src/common/components/app-link/AppLink.module.scss @@ -1,4 +1,3 @@ -@use "../../../theme/v2Styles" as *; @use "../../../theme/mixins" as *; .link { diff --git a/apps/client/src/common/components/collapse-bar/CollapseBar.module.scss b/apps/client/src/common/components/collapse-bar/CollapseBar.module.scss index 63e519f1c..f4b999316 100644 --- a/apps/client/src/common/components/collapse-bar/CollapseBar.module.scss +++ b/apps/client/src/common/components/collapse-bar/CollapseBar.module.scss @@ -1,5 +1,3 @@ -@use '../../../theme/v2Styles' as *; - .header { font-size: $inner-section-text-size; font-weight: 600; diff --git a/apps/client/src/common/components/delay-indicator/DelayIndicator.module.scss b/apps/client/src/common/components/delay-indicator/DelayIndicator.module.scss index 7f7ce3cb2..deb93d0a6 100644 --- a/apps/client/src/common/components/delay-indicator/DelayIndicator.module.scss +++ b/apps/client/src/common/components/delay-indicator/DelayIndicator.module.scss @@ -1,5 +1,3 @@ -@use '../../../theme/v2Styles' as *; - .delaySymbol { svg { font-size: 1.5rem; diff --git a/apps/client/src/common/components/error-boundary/ErrorBoundary.module.scss b/apps/client/src/common/components/error-boundary/ErrorBoundary.module.scss index 71182baf6..eeb746c27 100644 --- a/apps/client/src/common/components/error-boundary/ErrorBoundary.module.scss +++ b/apps/client/src/common/components/error-boundary/ErrorBoundary.module.scss @@ -1,5 +1,3 @@ -@use '../../../theme/v2Styles' as *; - .errorContainer { width: 100%; height: 100%; diff --git a/apps/client/src/common/components/external-link/ExternalLink.module.scss b/apps/client/src/common/components/external-link/ExternalLink.module.scss index a09a53ba0..0a17dddbe 100644 --- a/apps/client/src/common/components/external-link/ExternalLink.module.scss +++ b/apps/client/src/common/components/external-link/ExternalLink.module.scss @@ -1,6 +1,3 @@ -@use '../../../theme/v2Styles' as *; -@use '../../../theme/ontimeColours' as *; - .link { display: flex; align-items: center; diff --git a/apps/client/src/common/components/input/auto-text-area/AutoTextArea.tsx b/apps/client/src/common/components/input/auto-text-area/AutoTextArea.tsx index 5150b3e0d..1e47b8a84 100644 --- a/apps/client/src/common/components/input/auto-text-area/AutoTextArea.tsx +++ b/apps/client/src/common/components/input/auto-text-area/AutoTextArea.tsx @@ -4,6 +4,8 @@ import { Textarea, TextareaProps } from '@chakra-ui/react'; import autosize from 'autosize/dist/autosize'; export const AutoTextArea = (props: TextareaProps) => { + const { value } = props; + const ref = useRef(null); useEffect(() => { @@ -12,7 +14,7 @@ export const AutoTextArea = (props: TextareaProps) => { return () => { autosize.destroy(node); }; - }, []); + }, [value]); return (