Skip to content

Commit

Permalink
Merge pull request #1804 from hackforla/1785-export-button-ui
Browse files Browse the repository at this point in the history
1785 Add export button and notification dialogs
  • Loading branch information
kdow authored Sep 3, 2024
2 parents ddd3574 + 8776b98 commit d5d5af1
Show file tree
Hide file tree
Showing 18 changed files with 797 additions and 203 deletions.
3 changes: 3 additions & 0 deletions assets/close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/download-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions assets/loading dots.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/logo_downloading.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/round-check-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/typcn_export.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/warning-error.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/yellow_tips.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 8 additions & 1 deletion components/common/ChipList/StyledChip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function StyledChip({
color,
onDelete,
outlined,
sx,
}) {
const theme = useTheme();
const classesSolid = useStylesSolid({ color });
Expand All @@ -72,26 +73,32 @@ function StyledChip({
size="small"
variant={outlined ? 'outlined' : 'default'}
clickable={false}
sx={sx}
/>
);
}

export default StyledChip;

StyledChip.propTypes = {
label: PropTypes.string.isRequired,
label: PropTypes.oneOfType([
PropTypes.string,
PropTypes.object,
]).isRequired,
value: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
]),
color: PropTypes.string,
onDelete: PropTypes.func,
outlined: PropTypes.bool,
sx: PropTypes.shape({}),
};

StyledChip.defaultProps = {
value: undefined,
color: undefined,
onDelete: undefined,
outlined: false,
sx: undefined,
};
Loading

0 comments on commit d5d5af1

Please sign in to comment.