Skip to content

Commit 0e2cd15

Browse files
authored
Find a temporary place for settings (codesandbox#4060)
1 parent 28ed150 commit 0e2cd15

File tree

2 files changed

+29
-0
lines changed
  • packages

2 files changed

+29
-0
lines changed

packages/app/src/app/pages/NewDashboard/Sidebar/index.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,19 @@ export const Sidebar = props => {
248248
Recently Deleted
249249
</Link>
250250
</ListAction>
251+
<ListAction align="center" css={css({ paddingX: 0 })}>
252+
<Link as={RouterLink} to="/new-dashboard/settings" style={linkStyles}>
253+
<Stack
254+
as="span"
255+
css={css({ width: 10 })}
256+
align="center"
257+
justify="center"
258+
>
259+
<Icon name="gear" />
260+
</Stack>
261+
Settings (temp)
262+
</Link>
263+
</ListAction>
251264
</List>
252265
</Element>
253266
);

packages/components/src/components/Icon/icons.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,3 +356,19 @@ export const trash = props => (
356356
/>
357357
</Element>
358358
);
359+
360+
export const gear = props => (
361+
<Element
362+
as="svg"
363+
viewBox="0 0 16 16"
364+
xmlns="http://www.w3.org/2000/svg"
365+
{...props}
366+
>
367+
<path
368+
fillRule="evenodd"
369+
clipRule="evenodd"
370+
d="M9.00283 7.09842e-08L6.5413 0L6.17112 1.48071C5.56427 1.6506 4.99188 1.90294 4.46677 2.2249L3.21339 1.47287L1.47283 3.21344L2.22487 4.46684C1.86015 5.06173 1.58477 5.7173 1.41739 6.41489L0 6.76924L8.51808e-07 9.23078L1.41741 9.58513C1.58478 10.2827 1.86017 10.9383 2.22489 11.5332L1.47285 12.7866L3.21341 14.5272L4.46681 13.7751C5.0617 14.1398 5.71728 14.4152 6.41487 14.5826L6.76922 16H9.23075L9.58509 14.5826C10.2827 14.4152 10.9383 14.1398 11.5332 13.7751L12.7866 14.5271L14.5271 12.7866L13.7751 11.5332C14.1398 10.9383 14.4152 10.2827 14.5826 9.58511L16 9.23077L16 6.76923L14.5826 6.41488C14.4152 5.71728 14.1399 5.06169 13.7751 4.4668L14.5272 3.21342L12.7866 1.47285L11.5332 2.22487C10.8702 1.81838 10.1318 1.52285 9.34387 1.36415L9.00283 7.09842e-08ZM8.00001 11.4286C9.89355 11.4286 11.4286 9.89354 11.4286 7.99999C11.4286 6.10644 9.89355 4.57142 8.00001 4.57142C6.10646 4.57142 4.57144 6.10644 4.57144 7.99999C4.57144 9.89354 6.10646 11.4286 8.00001 11.4286Z"
371+
fill="currentColor"
372+
/>
373+
</Element>
374+
);

0 commit comments

Comments
 (0)