Skip to content

Commit

Permalink
fix(web): tabs order (#1139)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkumbobeaty authored Sep 11, 2024
1 parent a40485c commit c18275f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@ const LayerStyleEditor: FC<LayerStyleEditorProps> = ({
}, [styleCode, onLayerStyleValueUpdate, layerStyle, setNotification, t]);

const tabItems: TabItem[] = [
//Making code default tab temporary
{
id: "interface",
name: t("Interface"),
children: (
<InterfaceTab layerStyle={layerStyle} setLayerStyle={setLayerStyle} />
)
},
{
id: "code",
name: t("Code"),
Expand All @@ -64,19 +70,12 @@ const LayerStyleEditor: FC<LayerStyleEditorProps> = ({
hasLayerStyleSelected={!!layerStyle?.id}
/>
)
},
{
id: "interface",
name: t("Interface"),
children: (
<InterfaceTab layerStyle={layerStyle} setLayerStyle={setLayerStyle} />
)
}
];

return (
<EditorContainer>
<Tabs tabs={tabItems} position="top" alignment="end" />
<Tabs tabs={tabItems} position="top" alignment="end" currentTab="code" />
{layerStyle?.id && (
<ButtonWrapper>
<Button
Expand Down
1 change: 0 additions & 1 deletion web/src/beta/pages/AccountSettingsPage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Typography } from "@reearth/beta/lib/reearth-ui";
import { FC } from "react";


export type Props = {
path?: string;
};
Expand Down

0 comments on commit c18275f

Please sign in to comment.