mirror of
https://github.com/strapi/strapi.git
synced 2025-09-22 06:50:51 +00:00
Merge pull request #11471 from strapi/replace-search-component
QA/ SearchURLQuery update in views
This commit is contained in:
commit
98a2ecaa80
@ -1,7 +1,7 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState } from 'react';
|
||||||
import {
|
import {
|
||||||
DynamicTable,
|
DynamicTable,
|
||||||
Search,
|
SearchURLQuery,
|
||||||
SettingsPageTitle,
|
SettingsPageTitle,
|
||||||
useRBAC,
|
useRBAC,
|
||||||
useNotification,
|
useNotification,
|
||||||
@ -129,7 +129,7 @@ const ListPage = () => {
|
|||||||
<ActionLayout
|
<ActionLayout
|
||||||
startActions={
|
startActions={
|
||||||
<>
|
<>
|
||||||
<Search
|
<SearchURLQuery
|
||||||
label={formatMessage(
|
label={formatMessage(
|
||||||
{ id: 'app.component.search.label', defaultMessage: 'Search for {target}' },
|
{ id: 'app.component.search.label', defaultMessage: 'Search for {target}' },
|
||||||
{ target: title }
|
{ target: title }
|
||||||
|
@ -2,7 +2,7 @@ import React, { useCallback, useEffect, useReducer, useState } from 'react';
|
|||||||
import {
|
import {
|
||||||
ConfirmDialog,
|
ConfirmDialog,
|
||||||
LoadingIndicatorPage,
|
LoadingIndicatorPage,
|
||||||
Search,
|
SearchURLQuery,
|
||||||
SettingsPageTitle,
|
SettingsPageTitle,
|
||||||
useNotification,
|
useNotification,
|
||||||
useQueryParams,
|
useQueryParams,
|
||||||
@ -277,7 +277,7 @@ const RoleListPage = () => {
|
|||||||
{canRead && (
|
{canRead && (
|
||||||
<ActionLayout
|
<ActionLayout
|
||||||
startActions={
|
startActions={
|
||||||
<Search
|
<SearchURLQuery
|
||||||
label={formatMessage(
|
label={formatMessage(
|
||||||
{ id: 'app.component.search.label', defaultMessage: 'Search for {target}' },
|
{ id: 'app.component.search.label', defaultMessage: 'Search for {target}' },
|
||||||
{ target: title }
|
{ target: title }
|
||||||
|
@ -7,7 +7,7 @@ import {
|
|||||||
NoPermissions,
|
NoPermissions,
|
||||||
NoMedia,
|
NoMedia,
|
||||||
AnErrorOccurred,
|
AnErrorOccurred,
|
||||||
Search,
|
SearchURLQuery,
|
||||||
} from '@strapi/helper-plugin';
|
} from '@strapi/helper-plugin';
|
||||||
import { Layout, HeaderLayout, ContentLayout, ActionLayout } from '@strapi/design-system/Layout';
|
import { Layout, HeaderLayout, ContentLayout, ActionLayout } from '@strapi/design-system/Layout';
|
||||||
import { Main } from '@strapi/design-system/Main';
|
import { Main } from '@strapi/design-system/Main';
|
||||||
@ -138,7 +138,7 @@ export const MediaLibrary = () => {
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
endActions={
|
endActions={
|
||||||
<Search
|
<SearchURLQuery
|
||||||
label={formatMessage({
|
label={formatMessage({
|
||||||
id: getTrad('search.label'),
|
id: getTrad('search.label'),
|
||||||
defaultMessage: 'Search for an asset',
|
defaultMessage: 'Search for an asset',
|
||||||
|
@ -23,7 +23,7 @@ import {
|
|||||||
useRBAC,
|
useRBAC,
|
||||||
NoPermissions,
|
NoPermissions,
|
||||||
LoadingIndicatorPage,
|
LoadingIndicatorPage,
|
||||||
Search,
|
SearchURLQuery,
|
||||||
useQueryParams,
|
useQueryParams,
|
||||||
EmptyStateLayout,
|
EmptyStateLayout,
|
||||||
ConfirmDialog,
|
ConfirmDialog,
|
||||||
@ -137,7 +137,7 @@ const RoleListPage = () => {
|
|||||||
})}
|
})}
|
||||||
primaryAction={
|
primaryAction={
|
||||||
<CheckPermissions permissions={permissions.createRole}>
|
<CheckPermissions permissions={permissions.createRole}>
|
||||||
<Button onClick={handleNewRoleClick} startIcon={<Plus />}>
|
<Button onClick={handleNewRoleClick} startIcon={<Plus />} size="L">
|
||||||
{formatMessage({
|
{formatMessage({
|
||||||
id: getTrad('List.button.roles'),
|
id: getTrad('List.button.roles'),
|
||||||
defaultMessage: 'Add new role',
|
defaultMessage: 'Add new role',
|
||||||
@ -149,7 +149,7 @@ const RoleListPage = () => {
|
|||||||
|
|
||||||
<ActionLayout
|
<ActionLayout
|
||||||
startActions={
|
startActions={
|
||||||
<Search
|
<SearchURLQuery
|
||||||
label={formatMessage({
|
label={formatMessage({
|
||||||
id: 'app.component.search.label',
|
id: 'app.component.search.label',
|
||||||
defaultMessage: 'Search',
|
defaultMessage: 'Search',
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user