[2/n][Storybook] Settings - EnvironmentVariables (#75)

This commit is contained in:
Vivian Phung 2024-05-16 20:42:29 -04:00 committed by GitHub
parent 8cb5eadfb2
commit f01bdf2de7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 4 deletions

View File

@ -29,10 +29,10 @@ const meta: Meta<typeof AddEnvironmentVariableRow> = {
action: 'register',
},
index: {
type: 'number',
type: 'number',
},
isDeleteDisabled: {
type: 'boolean',
type: 'boolean',
},
},
args: {

View File

@ -1,6 +1,11 @@
import { Meta, StoryObj } from '@storybook/react';
import DisplayEnvironmentVariables from 'components/projects/project/settings/DisplayEnvironmentVariables';
import {
environmentVariable0,
environmentVariable1,
} from '../../MockStoriesData';
import { Environment } from 'gql-client';
const meta: Meta<typeof DisplayEnvironmentVariables> = {
title: 'Project/Settings/DisplayEnvironmentVariables',
@ -20,6 +25,10 @@ const meta: Meta<typeof DisplayEnvironmentVariables> = {
action: 'update',
},
},
args: {
environment: Environment.Development,
variables: [environmentVariable0, environmentVariable1],
},
};
export default meta;

View File

@ -1,9 +1,9 @@
import { defineConfig } from 'vite';
import { defineConfig, PluginOption } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react()] as PluginOption[],
resolve: {
alias: {
utils: '/src/utils',