Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace banner with infoMessage #698

Merged
merged 1 commit into from
Dec 5, 2023
Merged
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
23 changes: 12 additions & 11 deletions src/react/databrowser/objects/FolderCreate.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { InfoMessage, Stack, Wrap } from '@scality/core-ui';
import { Button, Input } from '@scality/core-ui/dist/next';
import { spacing } from '@scality/core-ui/dist/style/theme';
import { ChangeEvent, useState } from 'react';
import { closeFolderCreateModal, createFolder } from '../../actions';
import { useDispatch, useSelector } from 'react-redux';
import type { DispatchAPI } from 'redux';
import styled from 'styled-components';
import type { Action } from '../../../types/actions';
import type { AppState } from '../../../types/state';
import { Button, Input } from '@scality/core-ui/dist/next';
import type { DispatchAPI } from 'redux';
import { closeFolderCreateModal, createFolder } from '../../actions';
import { CustomModal as Modal } from '../../ui-elements/Modal';
import { addTrailingSlash } from '../../utils';
import { spacing } from '@scality/core-ui/dist/style/theme';
import styled from 'styled-components';
import { Banner, Icon, Stack, Wrap } from '@scality/core-ui';
export const Description = styled.div`
margin-top: ${spacing.sp16};
width: 20.5rem;
Expand Down Expand Up @@ -94,11 +94,12 @@ const FolderCreate = ({ bucketName, prefixWithSlash }: Props) => {
onChange={handleChange}
/>
<Description>
<Banner variant="base" icon={<Icon name="Info-circle" />}>
When you create a folder, Data Browser creates an object with the
above name appended by suffix &quot;/&quot; and that object is
displayed as a folder in the Data Browser.
</Banner>
<InfoMessage
title="Creating a folder"
content='When you create a folder, Data Browser creates an object with the
above name appended by suffix "/" and that object is
displayed as a folder in the Data Browser.'
/>
</Description>
</Modal>
);
Expand Down
Loading