Skip to content

Commit c0e470f

Browse files
authored
Merge pull request #3 from oslabs-beta/ben/feat/swapOrientation
feat: swapped the default graph orientation from horizontal to vertical
2 parents 7e33178 + 67e9073 commit c0e470f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function ComponentMap({
4747
}: LinkTypesProps): JSX.Element {
4848
// importing custom hooks for the selection tabs.
4949
const [layout, setLayout] = useState('cartesian');
50-
const [orientation, setOrientation] = useState('horizontal');
50+
const [orientation, setOrientation] = useState('vertical');
5151
const [linkType, setLinkType] = useState('diagonal');
5252
const [stepPercent, setStepPercent] = useState(10);
5353
const [Tooltip, setTooltip] = useState(false);

src/app/components/StateRoute/ComponentMap/LinkControls.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ export default function LinkControls({
8989
disabled={layout === 'polar'}
9090
style={dropDownStyle}
9191
>
92-
<option value="horizontal">Horizontal</option>
9392
<option value="vertical">Vertical</option>
93+
<option value="horizontal">Horizontal</option>
9494
</select>
9595
&nbsp;&nbsp;
9696

0 commit comments

Comments
 (0)