new text area + editable template

This commit is contained in:
Ari Sosnovsky committed 2021-11-16 09:52:19 -05:00
1 parent fed45e1d78
commit b683cbb65e
9 files changed
+86 -28

No files matched your search

+12 -2
View File
@@ -1,7 +1,7 @@
import { Styles } from "jss";
import { createAppUseStyles, AppTheme } from "~/styles/theme";
const commonInputStyle = (theme: AppTheme): Styles => ({
const commonInputStyle = (theme: AppTheme) => ({
input: {
backgroundColor: theme.secondary,
color: theme.secondaryAccent,
@@ -9,7 +9,7 @@ const commonInputStyle = (theme: AppTheme): Styles => ({
borderStyle: 'solid',
borderWidth: 1,
borderRadius: 5,
padding: 10,
padding: 15,
marginLeft: 5,
marginRight: 5,
fontSize: 16,
@@ -53,6 +53,16 @@ export const useInputTextStyles = createAppUseStyles<{}>(theme => ({
...commonInputStyle(theme),
}));
export const useInputTextAreaStyles = createAppUseStyles<{ resizable: boolean }>(theme => {
const styles = commonInputStyle(theme);
return {
input: ({resizable}) => ({
...styles.input,
resize: resizable ? 'both' : 'none'
})
}
});
export const useInputViewEditStyles = createAppUseStyles<{
isEditing: boolean;
}>(theme => ({