Closed fbwoolf closed 1 week ago
@kyranjamie @pete-watters can you take a look at my second commit here? I spent quite a bit of time refactoring Cell
today. You will see the old one renamed CellToReplace
temporarily, I'll swap those out once we all agree my changes are ok. Look at the new Cell
and CellWithAvatar
(open to feedback on naming). Cell
does not use the Flag
so covers the last one here, while CellWithAvatar
uses Flag
to handle the others. I added an actionIcon
so we can pass in the Switch
or RadioButton
as needed (or chevron). This removes needing the variant. Look at ThemeSwitcher
for sample implementation.
@kyranjamie @pete-watters can you take a look at my second commit here? I spent quite a bit of time refactoring
Cell
today. You will see the old one renamedCellToReplace
temporarily, I'll swap those out once we all agree my changes are ok. Look at the newCell
andCellWithAvatar
(open to feedback on naming).Cell
does not use theFlag
so covers the last one here, whileCellWithAvatar
usesFlag
to handle the others. I added anactionIcon
so we can pass in theSwitch
orRadioButton
as needed (or chevron). This removes needing the variant. Look atThemeSwitcher
for sample implementation.
This looks great to me, thanks for taking it on @fbwoolf 👍 It's much cleaner using ItemLayout
and worth taking the time now to then update all the Cell
s.
I just have one Q about removing the flex={1
as thats something I think all views / box's need. We could even just add it to our box.native
wrapper though to avoid having to always add it.
For context @kyranjamie , this is the discussion we originally had about it https://github.com/leather-io/mono/pull/416#discussion_r1740683610
Some of these conflicts are because of me, but hopefully just import path ones
This PR add a
RadioButton
to the UI library and wires up the settings theme modal. I removed the theme toggle in the dev console, but let me know if people prefer we keep it?*Are we wanting to default to
light
orsystem
? Currently, we are defaulting tolight
.