[2/n][Storybook] Settings - EnvironmentVariables (#75)
This commit is contained in:
parent
8cb5eadfb2
commit
f01bdf2de7
@ -29,10 +29,10 @@ const meta: Meta<typeof AddEnvironmentVariableRow> = {
|
|||||||
action: 'register',
|
action: 'register',
|
||||||
},
|
},
|
||||||
index: {
|
index: {
|
||||||
type: 'number',
|
type: 'number',
|
||||||
},
|
},
|
||||||
isDeleteDisabled: {
|
isDeleteDisabled: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
args: {
|
args: {
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
import { Meta, StoryObj } from '@storybook/react';
|
import { Meta, StoryObj } from '@storybook/react';
|
||||||
|
|
||||||
import DisplayEnvironmentVariables from 'components/projects/project/settings/DisplayEnvironmentVariables';
|
import DisplayEnvironmentVariables from 'components/projects/project/settings/DisplayEnvironmentVariables';
|
||||||
|
import {
|
||||||
|
environmentVariable0,
|
||||||
|
environmentVariable1,
|
||||||
|
} from '../../MockStoriesData';
|
||||||
|
import { Environment } from 'gql-client';
|
||||||
|
|
||||||
const meta: Meta<typeof DisplayEnvironmentVariables> = {
|
const meta: Meta<typeof DisplayEnvironmentVariables> = {
|
||||||
title: 'Project/Settings/DisplayEnvironmentVariables',
|
title: 'Project/Settings/DisplayEnvironmentVariables',
|
||||||
@ -20,6 +25,10 @@ const meta: Meta<typeof DisplayEnvironmentVariables> = {
|
|||||||
action: 'update',
|
action: 'update',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
args: {
|
||||||
|
environment: Environment.Development,
|
||||||
|
variables: [environmentVariable0, environmentVariable1],
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default meta;
|
export default meta;
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { defineConfig } from 'vite';
|
import { defineConfig, PluginOption } from 'vite';
|
||||||
import react from '@vitejs/plugin-react';
|
import react from '@vitejs/plugin-react';
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()] as PluginOption[],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
utils: '/src/utils',
|
utils: '/src/utils',
|
||||||
|
Loading…
Reference in New Issue
Block a user