π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
wip rework
Manav Rathi78dc93f6d777
diff --git a/web/packages/new/photos/components/DropdownInput.tsx b/web/packages/new/photos/components/DropdownInput.tsxindex e6a5e1c101..423a250852 100644--- a/web/packages/new/photos/components/DropdownInput.tsx+++ b/web/packages/new/photos/components/DropdownInput.tsx@@ -47,6 +47,44 @@ export const DropdownInput = <T extends string>({selected,onSelect,placeholder,+}: DropdownInputProps<T>) => (+ <Select+ value={selected}+ onChange={(event: SelectChangeEvent) => {+ onSelect(event.target.value as T);+ }}+ displayEmpty+ renderValue={() => {+ // Return the value that is shown in the unexpanded state.+ const label = options.find((o) => o.value == selected)?.label;+ return label ? (+ <Typography>{label}</Typography>+ ) : (+ <Typography sx={{ color: "text.muted" }}>+ {placeholder}+ </Typography>+ );+ }}+ >+ {options.map((option, index) => (+ <MenuItem+ key={option.value}+ // divider={index !== options.length - 1}+ // value={option.value}+ // sx={{ px: "16px", py: "14px" }}+ >+ {/* <Typography>{option.label}</Typography> */}+ {option.label}+ </MenuItem>+ ))}+ </Select>+);++export const DropdownInput2 = <T extends string>({+ options,+ selected,+ onSelect,+ placeholder,}: DropdownInputProps<T>) => (<SelectIconComponent={ExpandMoreIcon}