Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const DesignerMainArea: FC<IDesignerMainAreaProps> = () => {
const { styles } = useStyles();

const leftSidebarProps = useMemo(() =>
readOnly ? null : { title: 'Builder Widgets', content: () => <Toolbox />, placeholder: 'Builder Widgets' }
readOnly ? null : { title: 'Builder Components', content: () => <Toolbox />, placeholder: 'Builder Components' }
, [readOnly]);

return (
Expand Down
2 changes: 1 addition & 1 deletion shesha-reactjs/src/components/formDesigner/toolbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Toolbox: FC<IProps> = () => {
const builderItems = useMemo(() => {
const dataSources = [...formDs];

const defaultItems = [{ key: '1', label: 'Widgets', children: <ToolboxComponents /> }];
const defaultItems = [{ key: '1', label: 'Components', children: <ToolboxComponents /> }];

if (isEntityMetadata(currentMeta?.metadata))
dataSources.push({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ export const SettingsControl = <Value = any>(props: ISettingsControlProps<Value>
danger={mode === 'value' && !!code}
size='small'
icon={mode === 'code' && !!code ? <CodeFilled /> : !!code ? <CodeFilled /> : <CodeOutlined />}
color='lightslategrey'
onClick={onSwitchMode}
/>
{mode === 'code' && editor}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const useStyles = createStyles(({ css, cx, responsive, token }) => {
max-width: 100%;
margin-left: 5px;
margin-right: 0px;
color: ${token.colorPrimary};
color: grey;
display: flex;
justify-content: center;
align-items: center;
Expand Down
1 change: 1 addition & 0 deletions shesha-reactjs/src/designer-components/text/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ const TextComponent: IToolboxComponent<ITextTypographyProps> = {
desktop: {...prev.desktop, font: {...prev.desktop.font, size: px}},
};
})
.add<ITextTypographyProps>(6, (prev) => ({ ...prev, content: prev.content ?? "Text..." }))
};

export default TextComponent;