Skip to content

Commit

Permalink
refactor: remove export settings from general tab in general settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam committed Oct 18, 2024
1 parent 32a0e23 commit 2cd4eaf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/component/modal/setting/settings-tabs/GeneralTabContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { GroupPane } from '../../../elements/GroupPane';
import Label, { LabelStyle } from '../../../elements/Label';
import { NumberInput2Controller } from '../../../elements/NumberInput2Controller';
import { Select2 } from '../../../elements/Select2';
import { Select2Controller } from '../../../elements/Select2Controller';
import { WorkspaceWithSource } from '../../../reducer/preferences/preferencesReducer';

const labelStyle: LabelStyle = {
Expand Down Expand Up @@ -44,10 +43,6 @@ const LOGS_LEVELS = Object.keys(LOGGER_LEVELS).map((level) => ({
value: level,
}));

const RESOLUTIONS = [72, 96, 150, 200, 300, 400, 500, 600].map(
(resolution) => ({ value: resolution, label: String(resolution) }),
);

function GeneralTabContent() {
const { register, control } = useFormContext<WorkspaceWithSource>();

Expand Down Expand Up @@ -136,11 +131,6 @@ function GeneralTabContent() {
/>
</Label>
</GroupPane>
<GroupPane text="Export settings">
<Label title="PNG Resolution " style={labelStyle}>
<Select2Controller name="export.png.resolution" items={RESOLUTIONS} />
</Label>
</GroupPane>
</>
);
}
Expand Down

0 comments on commit 2cd4eaf

Please sign in to comment.