Skip to content

Commit

Permalink
sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ddecrulle committed Nov 5, 2024
1 parent f97af91 commit dd28a73
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ type Story = StoryObj<typeof meta>;
export const Directory: Story = {
args: {
name: "My Documents",
size: 1024,
kind: "directory",
isPublic: false
}
Expand All @@ -22,7 +21,6 @@ export const Directory: Story = {
export const File: Story = {
args: {
name: "report.pdf",
size: 2048,
kind: "file",
isPublic: true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ import { MuiIconComponentName } from "onyxia-ui/MuiIconComponentName";
type Props = {
className?: string;
name: string;
size: number;
kind: "directory" | "file";
isPublic: boolean;
};

export function DirectoryOrFileDetailed(props: Props) {
const { name, size, kind, isPublic, className } = props;
const { name, kind, isPublic, className } = props;
const { classes, cx } = useStyles();

const shareIconId = id<MuiIconComponentName>(
Expand Down Expand Up @@ -45,7 +44,6 @@ export function DirectoryOrFileDetailed(props: Props) {
&nbsp;
{isPublic ? "Dossier public" : "Dossier privé"}
</Text>
<Text typo="body 2">- {size} MB</Text>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ import { TextField } from "onyxia-ui/TextField";
import { FormControl, FormControlLabel, FormHelperText } from "@mui/material";
import { Checkbox } from "onyxia-ui/Checkbox";

export type Props = {};

export const MyFilesCreateFolderDialog = memo((props: Props) => {
const {} = props;

export const MyFilesCreateFolderDialog = memo(() => {
const { classes } = useStyles();
const [isOpen, setIsOpen] = useState(true);
const onClose = () => setIsOpen(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const MyFilesShareDialog = memo((props: Props) => {
<div className={classes.dialogContent}>
<DirectoryOrFileDetailed
name="test"
size={100}
kind={kind}
isPublic={isPublic}
className={classes.directoryDetails}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function MyFilesShareSelectTime(props: Props) {
</FormControl>
);
}
const useStyles = tss.withName({ MyFilesShareSelectTime }).create(({}) => ({
const useStyles = tss.withName({ MyFilesShareSelectTime }).create(() => ({
"timeSelectWrapper": {
"minWidth": 200
}
Expand Down

0 comments on commit dd28a73

Please sign in to comment.