Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"@apache-arrow/ts": "^14.0.2",
"@emotion/react": "^11.11.1",
"@mantine/carousel": "^7.5.1",
"@mantine/charts": "^7.5.3",
"@mantine/code-highlight": "^7.5.1",
"@mantine/core": "^7.5.1",
"@mantine/dates": "^7.5.1",
Expand Down
211 changes: 211 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/api/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ instance.interceptors.request.use(

instance.interceptors.response.use(
(response) => {
return response;
return response;
},
(error) => {
const status = error.status || (error.response ? error.response.status : 0);
if (status === 403 || status === 401) {
if (status === 401) {
signOutHandler();
}
return Promise.reject(error);
}
);
},
);

export const Axios = () => instance;
1 change: 1 addition & 0 deletions src/assets/images/brand/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions src/components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,36 @@
background-color: #545BEB;
color: #FFFFFF;
}

.iconBtn {
background: #fff;
padding: 0;
width: 36px;
color: #211F1F;
border: 1px #e9ecef solid;
border-radius: rem(8px);
margin-right: 0.675rem;

&.iconBtnActive {
color: white;
background-color: var(--mantine-color-brandPrimary-4);
}
}



.iconBtnIcon {
color: var(--mantine-color-brandPrimary-6);
}

.iconBtnLabel {
font-size: 0.8rem;
}

.iconBtn:hover {
background-color: #E0E0E0;
&.iconBtnActive {
color: white;
background-color: var(--mantine-color-brandPrimary-4);
}
}
28 changes: 28 additions & 0 deletions src/components/Button/IconButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Button, Tooltip } from '@mantine/core';
import type { FC, ReactNode } from 'react';
import classes from './Button.module.css'
import React from 'react';

type IconButtonProps = {
onClick?: () => void;
renderIcon: () => ReactNode;
icon?: ReactNode;
active?: boolean;
tooltipLabel?: string;
}

const IconButton: FC<IconButtonProps> = (props) => {
const { renderIcon, tooltipLabel } = props;
const Wrapper = tooltipLabel ? Tooltip : React.Fragment
return (
<Wrapper label={tooltipLabel}>
<Button
className={`${classes.iconBtn} ${props.active && classes.iconBtnActive}`}
onClick={props.onClick && props.onClick}>
{renderIcon()}
</Button>
</Wrapper>
);
};

export default IconButton;
Loading