Skip to content

Commit cf38217

Browse files
committed
Changed position of buttons
Signed-off-by: Aryan Shah <aryanashah11@gmail.com>
1 parent e2f7e30 commit cf38217

4 files changed

Lines changed: 42 additions & 40 deletions

File tree

src/components/SistentNavigation/content.js

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -38,48 +38,52 @@ export const content = [
3838
{ id: 26, link: "/projects/sistent/components/container/guidance", text: "Container" },
3939
{ id: 27, link: "/projects/sistent/components/container/code", text: "Container" },
4040

41-
{ id: 28, link: "/projects/sistent/components/icons", text: "Icons" },
41+
{ id: 26, link: "/projects/sistent/components/dialog", text: "Dialog" },
42+
{ id: 27, link: "/projects/sistent/components/dialog/guidance", text: "Dialog" },
43+
{ id: 28, link: "/projects/sistent/components/dialog/code", text: "Dialog" },
4244

43-
{ id: 29, link: "/projects/sistent/components/link", text: "Link" },
44-
{ id: 30, link: "/projects/sistent/components/link/guidance", text: "Link" },
45-
{ id: 31, link: "/projects/sistent/components/link/code", text: "Link" },
45+
{ id: 29, link: "/projects/sistent/components/icons", text: "Icons" },
4646

47-
{ id: 32, link: "/projects/sistent/components/modal", text: "Modal" },
48-
{ id: 33, link: "/projects/sistent/components/modal/code", text: "Modal" },
47+
{ id: 30, link: "/projects/sistent/components/link", text: "Link" },
48+
{ id: 31, link: "/projects/sistent/components/link/guidance", text: "Link" },
49+
{ id: 32, link: "/projects/sistent/components/link/code", text: "Link" },
4950

50-
{ id: 34, link: "/projects/sistent/components/pagination", text: "Pagination" },
51-
{ id: 35, link: "/projects/sistent/components/pagination/guidance", text: "Pagination" },
52-
{ id: 36, link: "/projects/sistent/components/pagination/code", text: "Pagination" },
51+
{ id: 33, link: "/projects/sistent/components/modal", text: "Modal" },
52+
{ id: 34, link: "/projects/sistent/components/modal/code", text: "Modal" },
5353

54-
{ id: 37, link: "/projects/sistent/components/paper", text: "Paper" },
55-
{ id: 38, link: "/projects/sistent/components/paper/guidance", text: "Paper" },
56-
{ id: 39, link: "/projects/sistent/components/paper/code", text: "Paper" },
54+
{ id: 35, link: "/projects/sistent/components/pagination", text: "Pagination" },
55+
{ id: 36, link: "/projects/sistent/components/pagination/guidance", text: "Pagination" },
56+
{ id: 37, link: "/projects/sistent/components/pagination/code", text: "Pagination" },
5757

58-
{ id: 40, link: "/projects/sistent/components/popper", text: "Popper" },
59-
{ id: 41, link: "/projects/sistent/components/popper/guidance", text: "Popper" },
60-
{ id: 42, link: "/projects/sistent/components/popper/code", text: "Popper" },
58+
{ id: 38, link: "/projects/sistent/components/paper", text: "Paper" },
59+
{ id: 39, link: "/projects/sistent/components/paper/guidance", text: "Paper" },
60+
{ id: 40, link: "/projects/sistent/components/paper/code", text: "Paper" },
6161

62-
{ id: 43, link: "/projects/sistent/components/select", text: "Select" },
63-
{ id: 44, link: "/projects/sistent/components/select/guidance", text: "Select" },
64-
{ id: 45, link: "/projects/sistent/components/select/code", text: "Select" },
62+
{ id: 41, link: "/projects/sistent/components/popper", text: "Popper" },
63+
{ id: 42, link: "/projects/sistent/components/popper/guidance", text: "Popper" },
64+
{ id: 43, link: "/projects/sistent/components/popper/code", text: "Popper" },
6565

66-
{ id: 46, link: "/projects/sistent/components/switch", text: "Switch" },
67-
{ id: 47, link: "/projects/sistent/components/switch/guidance", text: "Switch" },
68-
{ id: 48, link: "/projects/sistent/components/switch/code", text: "Switch" },
66+
{ id: 44, link: "/projects/sistent/components/select", text: "Select" },
67+
{ id: 45, link: "/projects/sistent/components/select/guidance", text: "Select" },
68+
{ id: 46, link: "/projects/sistent/components/select/code", text: "Select" },
6969

70-
{ id: 49, link: "/projects/sistent/components/tabs", text: "Tabs" },
71-
{ id: 50, link: "/projects/sistent/components/tabs/guidance", text: "Tabs" },
72-
{ id: 51, link: "/projects/sistent/components/tabs/code", text: "Tabs" },
70+
{ id: 47, link: "/projects/sistent/components/switch", text: "Switch" },
71+
{ id: 48, link: "/projects/sistent/components/switch/guidance", text: "Switch" },
72+
{ id: 49, link: "/projects/sistent/components/switch/code", text: "Switch" },
7373

74-
{ id: 52, link: "/projects/sistent/components/text-field", text: "Text Field" },
75-
{ id: 53, link: "/projects/sistent/components/text-field/guidance", text: "Text Field" },
76-
{ id: 54, link: "/projects/sistent/components/text-field/code", text: "Text Field" },
74+
{ id: 50, link: "/projects/sistent/components/tabs", text: "Tabs" },
75+
{ id: 51, link: "/projects/sistent/components/tabs/guidance", text: "Tabs" },
76+
{ id: 52, link: "/projects/sistent/components/tabs/code", text: "Tabs" },
7777

78-
{ id: 55, link: "/projects/sistent/components/text-input", text: "Text Input" },
79-
{ id: 56, link: "/projects/sistent/components/text-input/guidance", text: "Text Input" },
80-
{ id: 57, link: "/projects/sistent/components/text-input/code", text: "Text Input" },
78+
{ id: 53, link: "/projects/sistent/components/text-field", text: "Text Field" },
79+
{ id: 54, link: "/projects/sistent/components/text-field/guidance", text: "Text Field" },
80+
{ id: 55, link: "/projects/sistent/components/text-field/code", text: "Text Field" },
8181

82-
{ id: 58, link: "/projects/sistent/components/tooltip", text: "Tooltip" },
83-
{ id: 59, link: "/projects/sistent/components/tooltip/guidance", text: "Tooltip" },
84-
{ id: 60, link: "/projects/sistent/components/tooltip/code", text: "Tooltip" },
82+
{ id: 56, link: "/projects/sistent/components/text-input", text: "Text Input" },
83+
{ id: 57, link: "/projects/sistent/components/text-input/guidance", text: "Text Input" },
84+
{ id: 58, link: "/projects/sistent/components/text-input/code", text: "Text Input" },
85+
86+
{ id: 59, link: "/projects/sistent/components/tooltip", text: "Tooltip" },
87+
{ id: 60, link: "/projects/sistent/components/tooltip/guidance", text: "Tooltip" },
88+
{ id: 61, link: "/projects/sistent/components/tooltip/code", text: "Tooltip" },
8589
];

src/sections/Projects/Sistent/components/dialog/code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ const DialogCode = () => {
206206
full attention is needed for complex tasks or on mobile devices.
207207
</p>
208208
</DialogContent>
209-
<DialogActions>
209+
<DialogActions style={{ justifyContent: "flex-start", paddingLeft: "24px" }}>
210210
<Button variant="contained" onClick={() => setOpenFull(false)}>Cancel</Button>
211211
<Button variant="contained" color="primary" onClick={() => setOpenFull(false)}>
212212
Save

src/sections/Projects/Sistent/components/dialog/guidance.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,9 @@ const DialogGuidance = () => {
177177
full attention is needed for complex tasks or on mobile devices.
178178
</p>
179179
</DialogContent>
180-
<DialogActions>
181-
<Button onClick={() => setOpenFullScreen(false)}>Cancel</Button>
182-
<Button variant="contained" color="primary" onClick={() => setOpenFullScreen(false)}>
183-
Save
184-
</Button>
180+
<DialogActions style={{ justifyContent: "flex-start", paddingLeft: "24px" }}>
181+
<Button variant="contained" onClick={() => setOpenFullScreen(false)}>Cancel</Button>
182+
<Button variant="contained" color="secondary" onClick={() => setOpenFullScreen(false)}>Delete</Button>
185183
</DialogActions>
186184
</Dialog>
187185
</SistentThemeProvider>

src/sections/Projects/Sistent/components/dialog/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const SistentDialog = () => {
9292
Do you want to proceed with this action?
9393
</DialogContent>
9494
<DialogActions>
95-
<Button variant="contained" onClick={handleClose}>Cancel</Button>
95+
<Button variant="contained" onClick={handleClose}>Cancel</Button>
9696
<Button variant="contained" color="primary" onClick={handleClose}>
9797
Confirm
9898
</Button>

0 commit comments

Comments
 (0)